For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

TopABS_State

Anonymous's picture
Forums: 

I am looking for tools to calculate TopABS_State : TopABS_State_IN TopABS_State_OUT TopABS_State_ON TopABS_State_UNKNOWN

This enumeration class is used to calculate the relative position between a TopoDS_vertex and a TopoDS_Shape.

Thanks.

Arnaud Magnier's picture

To compute the state of a point (to get the point from your vertex, use the BRepTools::Pnt method) in a solid (your shape must be TopoDS_Solid type), you can use the BRepClass3d_SolidClassifier class.

For exemple, you can use the:

- BRepClass3d_SolidClassifier::Load method to load the solid

- BRepClass3d_SolidClassifier::Perform to compute the state of the point.

- BRepClass3d_SClassifier::State to get the TopAbs_State (BRepClass3d_SolidClassifier inherits BRepClass3d_SClassifier)

Good computation, regards,

Arnaud.