Grasshopper

algorithmic modeling for Rhino

Hi

I'm a beginner working on a project that creates a random model. It creates a grid and fills it with surfaces (like walls and floors) and then randomly deletes a number of surfaces so it creates spaces.

The basic project works fine, but I would like to add a 'rule' that makes it so the walls are not allowed to create closed boxes and I can't seem to figure out how to do it.

Would someone be so kind to give me some tips?

Thanks in advance!

Views: 673

Attachments:

Replies to This Discussion

Hi Jehan,

This finds the centre of each "cell" and checks how many surfaces there are within a distance to find the sides to the box (if you move away from squares you might have to update value it takes to cull these).

If there are 6, and therefore closed, it randomly deletes one of these - you could add your own rule in if you want control over which one is deleted, then removes the culled face(s) from the original list. Hopefully it helps and possibly introduces you to a few handy components/procedures.

Attachments:

Hi Joe

Thanks a lot! I would've never found this by myself!

These new components are very interesting and handy indeed. I'll have to look over your solution a few more times to fully understand it, but I'll get there.

Thanks again, it really me helped a lot!

RSS

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