Grasshopper

algorithmic modeling for Rhino

Anyone know of the best way to determine if a uv point is within the trim boundary of a given surface? OpenNurbs documentation is so opaque!

Thanks in advance!
Kyle

Views: 530

Replies to This Discussion

Maybe look for RhUtil::RhinoIsPointInBrep Method. But I haven't tried it.
Thanks for the tip, Jan-Ruben, but I think that method is for determining if a point is contained within a closed brep... as in within its interior. I'm looking to determine if a point which lies on a surface is within the trim boundary or not.

Surely this functionality is around somewhere - the inbuilt divide surface component in grasshopper already does this, but I can't reproduce the behavior within a script node.
kyle
Got it... I think.
It involved a bit of digging around in the Brep class, and some education on how trim boundaries are handled. Check out the attached ghx file for a cleaned-up function which performs accordingly - important opennurbs functionality includes: OnBrep.ComputeLoopType , OnBrep.Loop2dCurve , and RhUtil.RhinoPointInPlanarClosedCurve

Would be most appreciative for a heads-up for cases where this function would not work!

Thanks
Kyle
Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service