Grasshopper

algorithmic modeling for Rhino

Hello everyone,

I'm making a script which convert a shape into lego blocks... 

The first phase of the script is the form, here a basic rotation, then the shape is inserted into a "box" of points. Those points represent the middle of a lego bricks. When I legotize the form all the blocks are stacked toghether in a massive volume. Now the next step is to play with the possible openings offered by the lego. So I changed the x and y direction according to a random number to move them and create openings but the problem is that they intersect to each other. So we I have to do, I think, is to set a minimum distance between the blocks like that they won't intersect anymore. For instance, the minimum distance is 3.2 in y Direction and 1.6 in x Direction.

Does anyone can help me with that? I don't know how to do that

Find enclose my GH file renderings and a sketch.

Thanks a lot 

Guillaume

Views: 1854

Attachments:

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2026   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service