Grasshopper

algorithmic modeling for Rhino


I am new to grasshopper but a problem has arisen which I hope Grasshopper can provide a solution.

To Illustrate: Imagine the red circles with fixed diameter are filled into the space between the purple curves and allowed to settle due to gravity. Stop adding red circles if the boundary curves are crossed. Once the maximum number of red circles is reached, fix their position and replace them with the smaller blue circles.

The required result is represented by the purple boundary curves and the blue circles.

Imagine filling an irregular 2D closed shape. The shape could be a simple closed loop like 'O' or have protected regions inside it like 'B'.

I need to fill any number of these shapes with circles, (to form words in a logo).

The circles need be 0.25 mm diameter with centre distances in the range 0.35 to 0.45 mm. Similar limitations apply between the boundary and the nearest circles centres.

The 'fill' - Imagine dropping circles into the shape and letting each find it's own position until by approaching closer to the boundary or to other circles a natural limit is found.

It is a 2D representation of dropping glass marbles into a jar. Each would find it's own position but not necessarily onto a regular grid. The 'settled position would be affected by the amorphous profile of the jar, forcing each marble to settle by the effect of gravity instead.

The parameters mentioned do not allow for any circle to touch another. In this case I thought It may be appropriate to start all circles at 0.4 mm diameter and once positioned, lock the positions and reduce all diameters to 0.25 mm.

I am expecting to limit the 'lettering and shapes' on a region up to 400 mm x 60 mm. Potentially this means thousands of tiny circles.

I have looked at the circle fill solutions that I can find, but they don't do what I need.

Can Grasshopper solve something like this?

Thanks for any help anyone can offer.

Bill

 

Views: 1295

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service