Grasshopper

algorithmic modeling for Rhino

Cell centroids

looking to create a script that does something similar to what is shown above. I would like to use some rectangles as well as squares too. I am having issues getting it working. Let me know if you have any suggestions on a starting point.

Views: 540

Replies to This Discussion

There's a "feature" in programming called recursion (a Method that does something calls itself until some stop condition is satisfied: used among other cases in fractals etc etc).

This case of yours is a "conditional" recursion if I may use the term ... meaning that the further subdivisions are applied only in pieces that intersect with the rail curve: although easy you'll need code to do it (C# in my case).

A small demo:

In an already existed C# I've added a 5 minutes job > a second C# that "filters" the fractals based on intersection events. Obviously in real-life this "filtering" is done inside the main C#, mind.

Note: the code in the fractal logic used suits specifically some facade tiling project and thus it doesn't match 100% with your goal ... but is enough to give you the gist of the approach.

Note: maybe this is also doable with Anemone but I don't work with native components.

Attachments:

Spend 5 minutes more: this makes rather more sense (recycle the V1A).

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service