compas icon indicating copy to clipboard operation
compas copied to clipboard

method to check if a point is within a brep

Open halimahassan opened this issue 2 years ago • 1 comments

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

halimahassan avatar May 22 '23 12:05 halimahassan

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.

chenkasirer avatar May 22 '23 12:05 chenkasirer