The Model
We played with grasshopper lately. So this is a quick experiment: a system of cylinders attracted by a polyline. The process:
- Create a grid of points
- Create polyline used as input
- Use the “Curve CP” component to get the closest point on the curve for each point of the grid
- Calculate the distance from each grid point to it’s corresponding point on the curve(the closest one)
- Add controls: max radius, min radius, range
- Create cylinders out of circles. Use the distance as a radius and extrusion depth
Download
Zip file containing the grasshopper definition, the rhino file and few renders:
Hey, a definition file would be great! I’ve been trying to figure this out myself, but can only seem to get it to work with point inputs 🙁
Hi,
we uploaded the definition.
You could get it here: http://morphocode.com/lab/download/morphocodecom-polylineattractor.zip
Morphocode,
After unzipping the file and loading the Grasshopper definition, a message appears with the following “IO generated 26 messages…” and the definition was blank. Do you know why this happened? Thanks again.
Hi David,
We guess that this happens because you are using an older version of Grasshopper.
Note that the definition was saved with version 0.6.0019 of the plugin, which is the latest build at the moment.
Cheers 🙂
this is good.
but how would it be possible for the density of the circles to be ON the curve and decay as they move away? a “reverse” attractor?
hi stu,
the density of the circles could be ON the curve.
It’s all about how you define the relation between the distance from the curve to the cylinders and the radius of the cylinders
To invert the density you have to use multiplication instead of division and play around with the range parameters
hi the link of definition say: You must be logged in to download this file.
please again 🙂
Hello.. How can I download the definition? It will be welcome! Thanx
Hi,
you can login/register here:
http://morphocode.com/wp-login.php
Best
hi, i´ve just dowloaded the poly attractor, how do i loaded to grashopper?
how do modify the definition so it is attracted to multiple curves based on point distance