estimate the relative position of a point and another solid

Hi everyone:

I have a question about how to know a point is inside another solid or outside the solid .

Thanks.

Anton Shabalin's picture

Hello,

Have you tried this:

Open CASCADE provides services to classify a point with respect to a face or a body using the following classes

  • BRepClass3d_SolidClassifier
  • BRepClass_FaceClassifier​

Also, look at this:

http://opencascade.wikidot.com/recipes

https://www.opencascade.com/content/point-inside-solid-or-not