Grasshopper

algorithmic 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?

Views: 2556

Attachments:

Replies to This Discussion

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...

an idea

Attachments:

Hi Fernando,

it's works like a charm! thanks! now the hard part is understanding what you just did! hahah

Thanks a lot :)

Attachments:

Thanks Andrew! :)

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.

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service