Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
TopOpeBRepTool_ShapeClassifier Class Reference

#include <TopOpeBRepTool_ShapeClassifier.hxx>

Public Member Functions

DEFINE_STANDARD_ALLOC TopOpeBRepTool_ShapeClassifier ()
 TopOpeBRepTool_ShapeClassifier (const TopoDS_Shape &SRef)
 SRef is the reference shape.
StateShapeShape(S) calls will classify S with SRef.

void ClearAll ()
 reset all internal data (SolidClassifier included)

void ClearCurrent ()
 reset all internal data (except SolidClassified)

void SetReference (const TopoDS_Shape &SRef)
 Set SRef as reference shape
the next StateShapeReference(S,AvoidS) calls will classify S with SRef.

TopAbs_State StateShapeShape (const TopoDS_Shape &S, const TopoDS_Shape &SRef, const Standard_Integer samedomain=0)
 classify shape S compared with shape SRef.
samedomain = 0 : S1,S2 are not same domain
samedomain = 1 : S1,S2 are same domain

Standard_Integer SameDomain () const
void SameDomain (const Standard_Integer samedomain)
 set mode for next StateShapeShape call
samedomain = true --> S,Sref are same domain --> point
on restriction (ON S) is used to classify S.
samedomain = false --> S,Sref are not domain --> point
not on restriction of S (IN S) is used to classify S.
samedomain value is used only in next StateShapeShape call

TopAbs_State StateShapeShape (const TopoDS_Shape &S, const TopoDS_Shape &AvoidS, const TopoDS_Shape &SRef)
 classify shape S compared with shape SRef.
AvoidS is not used in classification; AvoidS may be IsNull().
(usefull to avoid ON or UNKNOWN state in special cases)

TopAbs_State StateShapeShape (const TopoDS_Shape &S, const TopTools_ListOfShape &LAvoidS, const TopoDS_Shape &SRef)
 classify shape S compared with shape SRef.
LAvoidS is list of S subshapes to avoid in classification
AvoidS is not used in classification; AvoidS may be IsNull().
(usefull to avoid ON or UNKNOWN state in special cases)

TopAbs_State StateShapeReference (const TopoDS_Shape &S, const TopoDS_Shape &AvoidS)
 classify shape S compared with reference shape.
AvoidS is not used in classification; AvoidS may be IsNull().
(usefull to avoid ON or UNKNOWN state in special cases)

TopAbs_State StateShapeReference (const TopoDS_Shape &S, const TopTools_ListOfShape &LAvoidS)
 classify shape S compared with reference shape.
LAvoidS is list of S subshapes to avoid in classification
(usefull to avoid ON or UNKNOWN state in special cases)

TopOpeBRepTool_SolidClassifierChangeSolidClassifier ()
void StateP2DReference (const gp_Pnt2d &P2D)
 classify point P2D with myRef

void StateP3DReference (const gp_Pnt &P3D)
 classify point P3D with myRef

TopAbs_State State () const
 return field myState

const gp_Pnt2dP2D () const
const gp_PntP3D () const

Constructor & Destructor Documentation


Member Function Documentation


The documentation for this class was generated from the following file: