Extending Shape In Brep component functionality

Could someone tell me which RhinoCommon method(s) is/are used to check whether a surface is in or outside a Brep?

  • Do you deconstruct the Brep or create a bounding box and take the points?
  • But if you take vertices how to you manage the curved parts?

Thanks in advance.

Inside a closed beep I assume?
This could be done in two steps:

  1. Intersect the brep and the surface (https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Intersect_Intersection_BrepSurface.htm)
    -if they intersect it can’t be inside
  2. They don’t intersect:
    -take any point on the surface and test if it’s inside the brep, if it is the surface is inside, otherwise it’s not (https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Brep_IsPointInside.htm)
1 Like

Thanks!