Grasshopper

algorithmic modeling for Rhino

intersecting boxes + generating parametric trees

hey

i have got a model of a non quadratic site with trees and volumes, and in order to get the negative space of that area i would like to fill it up with small cubic boxes( 1m/1m/1m) and then delete the boxes that intersect with trees and volumes on that site(with brep|brep).

unfortunately i don't know how to fill the volume i extruded for being the limit of the boxes, so i'd be very thankful if anybody could tell me how to do this :)

thanks in advance!

^                                 ^

boundary for boxes         little box for filling the site-extrusion

Views: 721

Replies to This Discussion

How are your trees defined?

trees are basically just pipes

How do you want the base 1m cube orientated i.e. which edge/corner is it important?

oriented to the edge at the bottom, i already put a box with the right orientation to it(first screenshot/right side)

It's a pretty heavy weight computation so I haven't set the box size as 1x1x1 nor have I shown the empty space but if you Invert the Pattern for the last [Cull Pattern] then you will get what you want.

Attachments:

thanks a lot! works like a charm!

about the massiv amount of squares and testing for intersection:

do you think i have to make like a certain amount of box-clusters and check them for intersections seperately, or does it just take a lot of time to finish the operation? just so you know about the approximate number of cubes in my area: 60.000 squaremeter area, and i want to check out from gorund level to about 10 meters, so basically about 600.000 boxes :)

You may also want to consider using a different approach to achieve something similar with a less heavy weight computation.

 

wow, that could make it really easy, thanks for the links! it's always so mindblowing if you see similar things done in a way you wouldn't even think of. guess that's one of the great things of grasshopper!

i'm going to check that out tomorrow!

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