Hey, it’s been a long time since our last post… We played with grasshopper lately. So this is a quick experiment:  a system of cylinders attracted by a polyline.

Few renders:

Polyline Attractor

This is 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 EXAMPLE:

Zip file containing the grasshopper definition, the rhino file and few renders:

Note: it is saved with version 0.6.0019

Grasshopper: Polyline Attractor Render

MORPHOCODE/LAB: Polyline Attractor

MORPHOCODE / LAB: Polyline Attractor

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Sphinn
  • Add to favorites
  • email
  • StumbleUpon
  • Technorati
  • Tumblr
  • Twitter

This post is tagged ,

6 Responses

  1. Philip says:

    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 :(

  2. David says:

    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.

  3. morphocode says:

    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 :)

  4. stu says:

    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?

  5. morphocode says:

    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

Leave a Reply



Friend us

Categories