State of a Point

State of a Point on a Face

To compute the state of a point on a face:

Use BRepTools::Pnt to get the point from your vertex.

Your shape must be of the TopoDS_Shape type.

If it is, you can use BRepTopAdaptor_FClass2d class. For example, you can use:

BRepTopAdaptor_FClass2d::Load (to load the solid )

BRepTopAdaptor_FClass2d::Perform (to compute the state of the point )

BRepTopAdaptor_FClass2d::State (to get the TopAbs_State).

 

State of a Point in a Solid

To compute the state of a point in a solid:

Use BRepTools::Pnt is used to get the point from your vertex.

Your shape must be of the TopoDS_Solid type.

If it is, you can use the BRepClass3d_SolidClassifier class. For example, you can use:

BRepClass3d_SolidClassifier::Load (to load the solid)

BRepClass3d_SolidClassifier::Perform (to compute the state of the point)

BRepClass3d_SolidClassifier::State (to get a TopAbs_State object)

BRepClass3d_SolidClassifier inherits BRepclass3d_SClassifier