Grasshopper

algorithmic modeling for Rhino

Hi,

I would like to get information how values change when grid is affected not by one but by two attractor points. Would you be nice to tell how it works in words without grasshopper definition, as I want to understand it.

For example, I have one point and a grid of circles. If the point is near some sort of grid cell the circle that is near the point is bigger than points that are far away from the attractor point.

But what does it happens when there are at least two points? Some sort of average calculation???

Please help me:)

Views: 2327

Replies to This Discussion

Hi Tom,

Basically what point attractor (or repeller) definition does is that it uses the distance from attractor/repeller point to grid points, as a values for circle radii. It does not need to be circle radii, it can be anything else, in my example below it's radii of a hexagon.
By importing a second point attractor you (that is grasshopper) need to determine which of these two attractor points is closer to particular grid point, and therefor which of these two attractor points has an "influence" on which grid point. It determines this by using the "Minimum" component. This component returns the lesser of two values. For example, if distance between particular grid point and attractor point A is 12, and between attractor point B is 16, that means that attractor point A is closer to that grid point, and 12 will be used as a circle radius value. This goes for every other point:

Use pull point it automatically figures out averages between many objects. You can use any amount of points, curves, or geometry. http://formularch.blogspot.com/2012/03/gh-point-attract-repel.html?m=1

Wow, nice explanation djordje.

But what about more than 2 attractor points let say 50?

And how numbers changes when one attractor point is positive and other is negative?

Thank you for your support,

Petras Vestartas:)

Check my link. You can use infinite points.

If there are more than 2 attractor points, you need to determine the Minimum distance value between them and particular grid point, again. In that case, it would be absurdly to use "Minimum component n-1 times (where n is the number of point attractors).

Like Michael said, then use - "Pull points" component, which calculates the smallest distance between a series of point attractors and grid point, and returns only that smallest distance.

When you said, positive and negative attractor point, I guess you meant attractor and repeller?
This is what repeller is:

To my modest knowledge, I do not think you can use at the same time mixture of attractors and repellers in the same definition using only "Distance"+"Minimum" or "Pull point" components.
I saw an example of it though, somewhere at Kangaroo's group photos.

you can also use mass addition, you can use multiple points

http://www.grasshopper3d.com/forum/topics/multiple-attractor-points...

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service