generative modeling for Rhino
I've got a problem with selecting breps that intersecting an interpolate line. Can anyone help me?I've got a grid of brep components made out of tetrahedrons and octahedrons and a green curve that cuts through these objects. I want to only select the breps that are intersecting the green curve. Any idea how to go about doing so?
Make sure your Breps are grafted and your Curve is flattened. Then get the list length of the intersection results, and test whether or not it is equal to 0. Use the boolean result of the Equals component as the pattern by which to dispatch your original list of Breps.
Hi Andrew, thanks for the quick response. by any chance you could show me the components? this is my first go at grasshopper and i can only figure out till getting the list length...
it's works like a charm! thanks! now the hard part is understanding what you just did! hahah
Thanks a lot :)
Thanks Andrew! :)
Very clever use of lists to obtain a geometric result!
only you would add the function to join breps selecting only the tetrahedra. the oppositemay select any triangle.