Grasshopper

algorithmic modeling for Rhino

Hi everyone!

I want to test the inclusion of some points in a curve. The  "point in curve" output is a list of 0,1 and 2. How can I select only the 2 from the list? Is there a simple way, without playing with indeces  and "true/false" list?

Thank you all

Views: 647

Replies to This Discussion

Integer Division by 2 will make all 0s = 0, 1s = 0 and 2s = 1 you can then use this new Boolean list to Dispatch the Points inside the curve.

Right!!!!

Thank you!! ;)

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