Provides an interface to perform various checks to BRep shape. More...
#include <cadex/ModelCheck_BRepChecker.hxx>
Classes | |
class | Options |
Holds options for checker tools. More... | |
class | ProblemIterator |
class | ProblemWithShape |
class | ProblemWithShapeIterator |
struct | Tool |
Tools flags. More... | |
Public Types | |
typedef Options | OptionsType |
typedef std::shared_ptr< internal::ModelCheck_BRepCheckerImpl > | ImplType |
Public Member Functions | |
ModelCheck_BRepChecker () | |
Constructor. | |
ModelCheck_BRepChecker (const OptionsType &theOptions) | |
Constructor. | |
OptionsType & | SetOptions () |
Returns an internal Options object. | |
void | SetOptions (const OptionsType &theOptions) |
Sets an Options object. | |
const OptionsType & | Options () const |
Returns an internal Options object. | |
bool | Check (const ModelData_Shape &theShape) |
Performs check on the given shape. | |
bool | HasProblems () const |
Returns true if last checked shape has problems and false otherwise. | |
ModelData_ShapeList | ProblematicShapes () const |
Returns all subshapes which has problems. | |
ProblemIterator | Problems (const ModelData_Shape &theShape) const |
Returns iterator over problems of the given subshape. | |
ProblemWithShapeIterator | Problems (ModelCheck_ErrorLevel theLevel) const |
Returns iterator over problem with shapes of the given level. | |
size_t | NumberOfProblems (const ModelData_Shape &theShape) const |
Returns number of problems for the given subshape. | |
size_t | NumberOfProblems (ModelCheck_ErrorLevel theLevel) const |
Returns number of problems for the given level. | |
const ModelData_Shape & | Shape () const |
Returns the last checked shape. | |
size_t | FindID (const ModelData_Shape &theShape) const |
Returns the ID of subshape. | |
ModelData_Shape | FindShape (size_t theID) const |
Returns the shape with given ID. | |
const Base_ProgressStatus & | ProgressStatus () const |
Returns progress status. | |
Base_ProgressStatus & | ProgressStatus () |
Returns progress status. | |
const ImplType & | Impl () const |
Protected Attributes | |
ImplType | myImpl |
Provides an interface to perform various checks to BRep shape.
Usage example:
bool cadex::ModelCheck_BRepChecker::Check | ( | const ModelData_Shape & | theShape | ) |
Performs check on the given shape.
One checker can be safely applied to a set of shapes (e.g. in loop). The options will remain same and all internal data will be reinitialized to work with new shape.
ModelCheck_BRepChecker::ProblemWithShapeIterator cadex::ModelCheck_BRepChecker::Problems | ( | ModelCheck_ErrorLevel | theLevel | ) | const |
Returns iterator over problem with shapes of the given level.
This is an another approach to get all collected problems from checker. A simple example on how to use this method: