algorithmic modeling for Rhino
I have created a grid and from the points I have then generated some 3d L system trees (using rabbit) of varying heights which relate to a roof surface above. For the trees that sit at the edge of the grid I want to trim them so that the branches which fall outside of the grid are removed.
So... When I do this trim what I want to remain is all trees on the points inside the grid and then at the edge points of the grid, just the branches that fall within the grid boundary (so the ones that overhang outside of the perimeter grid get deleted).
How do I achieve this???
I have tried the method below which does not achieve what I desire. Any suggestions Please???
My attempts do far:
I have tried creating a boundary box (by first creating a big box (larger than the grid) and then subtracting (using a boolean) a box the same size as the grid.) and subtracting this using the brep line intersect tool however all I am left with is the branches that are touching the perimeter surfaces of the boundary box.
Tags:
Danny,
Thanks for the help. Unfortunately, I am running on 0.6 and I cant upgrade as if I do then I will no longer be able to use rabbit which is key to my experiment.
Since the Containment component does not work in Grasshopper I have found the inside tool. This has allowed me to generate a series of true/false statements for points that lie inside/outside my brep. This is all good however, I do not know how to make trees again from the points that are true, disgarding the false points. I have tried using the dispatch component which seperates them but then I do not know what to do from there on. Any Suggestions?
I have included my grasshopper file in hope that this may help however it was done on 0.6 using rabbit as well.
UPDATE
Using the cull pattern component I have successfully managed to isolate just the points inside the brep however when I join the points using a polyline, the points connect, however the line no longer represent the original tree generated with rabbit as they have connected in a different order. What's more, now all the trees connect with a line.
How can I separate the 3d l system trees independently so that when I use the inside component followed by the cull pattern component I am left with points in the same order that they were generated? This I think would solve my problem.
Welcome to
Grasshopper
© 2025 Created by Scott Davidson.
Powered by