Open CASCADE Technology 7.8.0
|
#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. | |
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(). (useful 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(). (useful 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(). (useful 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 (useful to avoid ON or UNKNOWN state in special cases) | |
TopOpeBRepTool_SolidClassifier & | ChangeSolidClassifier () |
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_Pnt2d & | P2D () const |
const gp_Pnt & | P3D () const |
TopOpeBRepTool_ShapeClassifier::TopOpeBRepTool_ShapeClassifier | ( | ) |
TopOpeBRepTool_ShapeClassifier::TopOpeBRepTool_ShapeClassifier | ( | const TopoDS_Shape & | SRef | ) |
SRef is the reference shape. StateShapeShape(S) calls will classify S with SRef.
TopOpeBRepTool_SolidClassifier & TopOpeBRepTool_ShapeClassifier::ChangeSolidClassifier | ( | ) |
void TopOpeBRepTool_ShapeClassifier::ClearAll | ( | ) |
reset all internal data (SolidClassifier included)
void TopOpeBRepTool_ShapeClassifier::ClearCurrent | ( | ) |
reset all internal data (except SolidClassified)
Standard_Integer TopOpeBRepTool_ShapeClassifier::SameDomain | ( | ) | const |
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
void TopOpeBRepTool_ShapeClassifier::SetReference | ( | const TopoDS_Shape & | SRef | ) |
Set SRef as reference shape the next StateShapeReference(S,AvoidS) calls will classify S with SRef.
TopAbs_State TopOpeBRepTool_ShapeClassifier::State | ( | ) | const |
return field myState
classify point P2D with myRef
classify point P3D with myRef
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)
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)
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)
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
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)