The class Check provides a diagnostic tool for checking the validity of the single shape or couple of shapes. The shapes are checked on:
More...
|
|
| BRepAlgoAPI_Check () |
| Empty constructor. More...
|
|
virtual | ~BRepAlgoAPI_Check () |
| Empty constructor. More...
|
|
| BRepAlgoAPI_Check (const TopoDS_Shape &theS, const Standard_Boolean bTestSE=Standard_True, const Standard_Boolean bTestSI=Standard_True) |
| Constructor for checking single shape. More...
|
|
| BRepAlgoAPI_Check (const TopoDS_Shape &theS1, const TopoDS_Shape &theS2, const BOPAlgo_Operation theOp=BOPAlgo_UNKNOWN, const Standard_Boolean bTestSE=Standard_True, const Standard_Boolean bTestSI=Standard_True) |
| Constructor for checking the couple of shapes. Additionally to the validity checks of each given shape, the types of the given shapes will be checked on validity for Boolean operation of given type. More...
|
|
|
void | SetData (const TopoDS_Shape &theS, const Standard_Boolean bTestSE=Standard_True, const Standard_Boolean bTestSI=Standard_True) |
| Initializes the algorithm with single shape. More...
|
|
void | SetData (const TopoDS_Shape &theS1, const TopoDS_Shape &theS2, const BOPAlgo_Operation theOp=BOPAlgo_UNKNOWN, const Standard_Boolean bTestSE=Standard_True, const Standard_Boolean bTestSI=Standard_True) |
| Initializes the algorithm with couple of shapes. Additionally to the validity checks of each given shape, the types of the given shapes will be checked on validity for Boolean operation of given type. More...
|
|
|
void | Perform () |
| Performs the check. More...
|
|
|
Standard_Boolean | IsValid () |
| Shows whether shape(s) valid or not. More...
|
|
const BOPAlgo_ListOfCheckResult & | Result () |
| Returns faulty shapes. More...
|
|
| BOPAlgo_Options () |
| Empty constructor. More...
|
|
| BOPAlgo_Options (const Handle< NCollection_BaseAllocator > &theAllocator) |
| Constructor with allocator. More...
|
|
virtual | ~BOPAlgo_Options () |
| Destructor. More...
|
|
const Handle< NCollection_BaseAllocator > & | Allocator () const |
| Returns allocator. More...
|
|
virtual void | Clear () |
| Clears all warnings and errors, and any data cached by the algorithm. User defined options are not cleared. More...
|
|
void | AddError (const Handle< Message_Alert > &theAlert) |
| Adds the alert as error (fail) More...
|
|
void | AddWarning (const Handle< Message_Alert > &theAlert) |
| Adds the alert as warning. More...
|
|
Standard_Boolean | HasErrors () const |
| Returns true if algorithm has failed. More...
|
|
Standard_Boolean | HasError (const Handle< Standard_Type > &theType) const |
| Returns true if algorithm has generated error of specified type. More...
|
|
Standard_Boolean | HasWarnings () const |
| Returns true if algorithm has generated some warning alerts. More...
|
|
Standard_Boolean | HasWarning (const Handle< Standard_Type > &theType) const |
| Returns true if algorithm has generated warning of specified type. More...
|
|
const Handle< Message_Report > & | GetReport () const |
| Returns report collecting all errors and warnings. More...
|
|
void | DumpErrors (Standard_OStream &theOS) const |
| Dumps the error status into the given stream. More...
|
|
void | DumpWarnings (Standard_OStream &theOS) const |
| Dumps the warning statuses into the given stream. More...
|
|
void | ClearWarnings () |
| Clears the warnings of the algorithm. More...
|
|
void | SetFuzzyValue (const Standard_Real theFuzz) |
| Sets the additional tolerance. More...
|
|
Standard_Real | FuzzyValue () const |
| Returns the additional tolerance. More...
|
|
void | SetProgressIndicator (const Message_ProgressScope &theProgress) |
| Set the Progress Indicator object. More...
|
|
void | SetRunParallel (const Standard_Boolean theFlag) |
| Set the flag of parallel processing if <theFlag> is true the parallel processing is switched on if <theFlag> is false the parallel processing is switched off. More...
|
|
Standard_Boolean | RunParallel () const |
| Returns the flag of parallel processing. More...
|
|
void | SetUseOBB (const Standard_Boolean theUseOBB) |
| Enables/Disables the usage of OBB. More...
|
|
Standard_Boolean | UseOBB () const |
| Returns the flag defining usage of OBB. More...
|
|
The class Check provides a diagnostic tool for checking the validity of the single shape or couple of shapes. The shapes are checked on:
- Topological validity;
- Small edges;
- Self-interference;
- Validity for Boolean operation of certain type (for couple of shapes only).
The class provides two ways of checking shape(-s)
- Constructors BRepAlgoAPI_Check aCh(theS); Standard_Boolean isValid = aCh.IsValid();
- Methods SetData and Perform BRepAlgoAPI_Check aCh; aCh.SetData(theS1, theS2, BOPAlgo_FUSE, Standard_False); aCh.Perform(); Standard_Boolean isValid = aCh.IsValid();