Grasshopper

algorithmic modeling for Rhino

Hi,

I have a series of fixed size rectangles which I would like to orient along a curve, using an attractor point that controls the size of the rectangles (from the biggest to the smallest).

What would be the best way to go about this?

Thanks!

Views: 603

Replies to This Discussion

Perhaps a napkin sketch showing what you are after?

sorry, you're right - here's my napkin :-)

It's easy to scale and move geometry based on distance to attractor, it is however very difficult to make geometry pay attention to its neighbours. That requires some form of internal iteration where every object is aware of every other object and GH is pretty bad at that sort of algorithm.

You may be able to leverage Kangaroo for the collision/spacing part though, but exactly how is beyond me.

I attached a file which does some moving and scaling based on distance to attractor, but it may not be what you're looking for...

Attachments:

Thanks!

It's definitely the feel of what I was looking for.

But I was hoping there's a way to have the rectangles have a series of fixed dimenions (30X40, 40X60, etc.). I guess it's much harder than I thought.

Thanks again for your help - greatly appreciated!  

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service