compas
compas copied to clipboard
method to check if a point is within a brep
I would like to have a method to check if a point or a number of points is within a given brep or not. RhinoCommon has such a method included: https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.brep/ispointinside
Hi @halimahassan, thanks for opening this!
This should be a rather straight-forward addition to compas_rhino.geometry.RhinoBrep. I could do it at some point, or - if you have time and interest - I could guide you adding it yourself ;) Let me know!
In the meantime, you could directly call IsPointInside(...) on RhinoBrep.native_brep. You'd need to use point_to_rhino from compas_rhino.conversions of course.