Grasshopper

algorithmic modeling for Rhino

Hi everyone,

Im looking for help because Im struggling to solve this problem...

I have many line segments and their endpoints are projected into "attractor points". These attractor points are divided in types, such as "soccer", baseball", etc. and so these types have different influence amplitudes base on their needed programmatic area.

The idea is to move the points of each segment away from these points (reverse direction to the projected one). And the amplitude has to be the one assigned to that programmatic type. 6 in total.

The problem is the closest point component does not divide the data in the 6 branches needed.

So I cant apply the 6 different amplitudes to move the points.

Data is all internalized, thanks for any help.

Views: 568

Attachments:

Replies to This Discussion

Any ideas?

bit confused,
but if I understood correctly, you were just missing a few components.

Basically Duplicate Data to gain the tree structure of the points, but with the vector amplitudes instead, in which case the trees are matched.

Although I did notice that you've duplicated all the points you want moved for some reason? (at the top)
Not sure why you Shatter+Divide, where the first Divide's output was probably enough?
then again, I'm kinda confused about what your trying to do so ignore that bit if it doesn't matter.

Hopefully its enough for you to go on though.

Attachments:

Hey,

Thank you so much, this worked! The points repulsion are now responding to their category!

Really smart about the duplicated data and the list item. Only two components to make quite a complex relation. (Assigning different categories to different points, resulting in categories with variable number of points, apply an amplitude to each category, and apply this amplitude to the points closer to each category)

PS: You are totally right about the duplicated points of the shatter. I actually tried with the division points and it worked just fine.Thanks again.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service