Open CASCADE Technology  7.6.0
Public Member Functions

TopOpeBRepTool_ShapeClassifier Class Reference

#include <TopOpeBRepTool_ShapeClassifier.hxx>

Public Member Functions

 TopOpeBRepTool_ShapeClassifier ()
 
 TopOpeBRepTool_ShapeClassifier (const TopoDS_Shape &SRef)
 SRef is the reference shape. StateShapeShape(S) calls will classify S with SRef. More...
 
void ClearAll ()
 reset all internal data (SolidClassifier included) More...
 
void ClearCurrent ()
 reset all internal data (except SolidClassified) More...
 
void SetReference (const TopoDS_Shape &SRef)
 Set SRef as reference shape the next StateShapeReference(S,AvoidS) calls will classify S with SRef. More...
 
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 More...
 
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 More...
 
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(). (useful to avoid ON or UNKNOWN state in special cases) More...
 
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(). (useful to avoid ON or UNKNOWN state in special cases) More...
 
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(). (useful to avoid ON or UNKNOWN state in special cases) More...
 
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 (useful to avoid ON or UNKNOWN state in special cases) More...
 
TopOpeBRepTool_SolidClassifierChangeSolidClassifier ()
 
void StateP2DReference (const gp_Pnt2d &P2D)
 classify point P2D with myRef More...
 
void StateP3DReference (const gp_Pnt &P3D)
 classify point P3D with myRef More...
 
TopAbs_State State () const
 return field myState More...
 
const gp_Pnt2dP2D () const
 
const gp_PntP3D () const
 

Constructor & Destructor Documentation

◆ TopOpeBRepTool_ShapeClassifier() [1/2]

TopOpeBRepTool_ShapeClassifier::TopOpeBRepTool_ShapeClassifier ( )

◆ TopOpeBRepTool_ShapeClassifier() [2/2]

TopOpeBRepTool_ShapeClassifier::TopOpeBRepTool_ShapeClassifier ( const TopoDS_Shape SRef)

SRef is the reference shape. StateShapeShape(S) calls will classify S with SRef.

Member Function Documentation

◆ ChangeSolidClassifier()

TopOpeBRepTool_SolidClassifier& TopOpeBRepTool_ShapeClassifier::ChangeSolidClassifier ( )

◆ ClearAll()

void TopOpeBRepTool_ShapeClassifier::ClearAll ( )

reset all internal data (SolidClassifier included)

◆ ClearCurrent()

void TopOpeBRepTool_ShapeClassifier::ClearCurrent ( )

reset all internal data (except SolidClassified)

◆ P2D()

const gp_Pnt2d& TopOpeBRepTool_ShapeClassifier::P2D ( ) const

◆ P3D()

const gp_Pnt& TopOpeBRepTool_ShapeClassifier::P3D ( ) const

◆ SameDomain() [1/2]

Standard_Integer TopOpeBRepTool_ShapeClassifier::SameDomain ( ) const

◆ SameDomain() [2/2]

void TopOpeBRepTool_ShapeClassifier::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

◆ SetReference()

void TopOpeBRepTool_ShapeClassifier::SetReference ( const TopoDS_Shape SRef)

Set SRef as reference shape the next StateShapeReference(S,AvoidS) calls will classify S with SRef.

◆ State()

TopAbs_State TopOpeBRepTool_ShapeClassifier::State ( ) const

return field myState

◆ StateP2DReference()

void TopOpeBRepTool_ShapeClassifier::StateP2DReference ( const gp_Pnt2d P2D)

classify point P2D with myRef

◆ StateP3DReference()

void TopOpeBRepTool_ShapeClassifier::StateP3DReference ( const gp_Pnt P3D)

classify point P3D with myRef

◆ StateShapeReference() [1/2]

TopAbs_State TopOpeBRepTool_ShapeClassifier::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(). (useful to avoid ON or UNKNOWN state in special cases)

◆ StateShapeReference() [2/2]

TopAbs_State TopOpeBRepTool_ShapeClassifier::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 (useful to avoid ON or UNKNOWN state in special cases)

◆ StateShapeShape() [1/3]

TopAbs_State TopOpeBRepTool_ShapeClassifier::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(). (useful to avoid ON or UNKNOWN state in special cases)

◆ StateShapeShape() [2/3]

TopAbs_State TopOpeBRepTool_ShapeClassifier::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

◆ StateShapeShape() [3/3]

TopAbs_State TopOpeBRepTool_ShapeClassifier::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(). (useful to avoid ON or UNKNOWN state in special cases)


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