generative modeling for Rhino
Hi guys,
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?
Tags: Brep, Interpolate, intersect
Permalink Reply by Andrew Heumann on March 30, 2012 at 3:43pm 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.
Permalink Reply by Lynuz Tan on March 30, 2012 at 3:49pm 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...
Permalink Reply by fernando molas garcia on March 31, 2012 at 12:12am an idea
Permalink Reply by Lynuz Tan on March 31, 2012 at 6:04am Hi Fernando,
it's works like a charm! thanks! now the hard part is understanding what you just did! hahah
Thanks a lot :)
Permalink Reply by Andrew Heumann on March 31, 2012 at 6:23am
Permalink Reply by fernando molas garcia on March 31, 2012 at 9:30am Andrew
Very clever use of lists to obtain a geometric result!
Permalink Reply by fernando molas garcia on March 31, 2012 at 9:47am only you would add the function to join breps selecting only the tetrahedra. the oppositemay select any triangle.
© 2013 Created by Scott Davidson.
Powered by