Open CASCADE Technology
7.4.0
|
A framework to check the overall validity of a shape. For a shape to be valid in Open CASCADE, it - or its component subshapes - must respect certain criteria. These criteria are checked by the function IsValid. Once you have determined whether a shape is valid or not, you can diagnose its specific anomalies and correct them using the services of the ShapeAnalysis, ShapeUpgrade, and ShapeFix packages. More...
#include <BRepCheck_Analyzer.hxx>
Public Member Functions | |
BRepCheck_Analyzer (const TopoDS_Shape &S, const Standard_Boolean GeomControls=Standard_True) | |
Constructs a shape validation object defined by the shape S. <S> is the shape to control. <GeomControls> If False only topological informaions are checked. The geometricals controls are For a Vertex : BRepCheck_InvalidToleranceValue NYI For an Edge : BRepCheck_InvalidCurveOnClosedSurface, BRepCheck_InvalidCurveOnSurface, BRepCheck_InvalidSameParameterFlag, BRepCheck_InvalidToleranceValue NYI For a face : BRepCheck_UnorientableShape, BRepCheck_IntersectingWires, BRepCheck_InvalidToleranceValue NYI For a wire : BRepCheck_SelfIntersectingWire. More... | |
void | Init (const TopoDS_Shape &S, const Standard_Boolean GeomControls=Standard_True) |
<S> is the shape to control. <GeomControls> If False only topological informaions are checked. The geometricals controls are For a Vertex : BRepCheck_InvalidTolerance NYI For an Edge : BRepCheck_InvalidCurveOnClosedSurface, BRepCheck_InvalidCurveOnSurface, BRepCheck_InvalidSameParameterFlag, BRepCheck_InvalidTolerance NYI For a face : BRepCheck_UnorientableShape, BRepCheck_IntersectingWires, BRepCheck_InvalidTolerance NYI For a wire : BRepCheck_SelfIntersectingWire More... | |
Standard_Boolean | IsValid (const TopoDS_Shape &S) const |
<S> is a subshape of the original shape. Returns <STandard_True> if no default has been detected on <S> and any of its subshape. More... | |
Standard_Boolean | IsValid () const |
Returns true if no defect is detected on the shape S or any of its subshapes. Returns true if the shape S is valid. This function checks whether a given shape is valid by checking that: More... | |
const Handle< BRepCheck_Result > & | Result (const TopoDS_Shape &SubS) const |
A framework to check the overall validity of a shape. For a shape to be valid in Open CASCADE, it - or its component subshapes - must respect certain criteria. These criteria are checked by the function IsValid. Once you have determined whether a shape is valid or not, you can diagnose its specific anomalies and correct them using the services of the ShapeAnalysis, ShapeUpgrade, and ShapeFix packages.
BRepCheck_Analyzer::BRepCheck_Analyzer | ( | const TopoDS_Shape & | S, |
const Standard_Boolean | GeomControls = Standard_True |
||
) |
Constructs a shape validation object defined by the shape S. <S> is the shape to control. <GeomControls> If False only topological informaions are checked. The geometricals controls are For a Vertex : BRepCheck_InvalidToleranceValue NYI For an Edge : BRepCheck_InvalidCurveOnClosedSurface, BRepCheck_InvalidCurveOnSurface, BRepCheck_InvalidSameParameterFlag, BRepCheck_InvalidToleranceValue NYI For a face : BRepCheck_UnorientableShape, BRepCheck_IntersectingWires, BRepCheck_InvalidToleranceValue NYI For a wire : BRepCheck_SelfIntersectingWire.
void BRepCheck_Analyzer::Init | ( | const TopoDS_Shape & | S, |
const Standard_Boolean | GeomControls = Standard_True |
||
) |
<S> is the shape to control. <GeomControls> If False only topological informaions are checked. The geometricals controls are For a Vertex : BRepCheck_InvalidTolerance NYI For an Edge : BRepCheck_InvalidCurveOnClosedSurface, BRepCheck_InvalidCurveOnSurface, BRepCheck_InvalidSameParameterFlag, BRepCheck_InvalidTolerance NYI For a face : BRepCheck_UnorientableShape, BRepCheck_IntersectingWires, BRepCheck_InvalidTolerance NYI For a wire : BRepCheck_SelfIntersectingWire
Standard_Boolean BRepCheck_Analyzer::IsValid | ( | const TopoDS_Shape & | S | ) | const |
<S> is a subshape of the original shape. Returns <STandard_True> if no default has been detected on <S> and any of its subshape.
Standard_Boolean BRepCheck_Analyzer::IsValid | ( | ) | const |
Returns true if no defect is detected on the shape S or any of its subshapes. Returns true if the shape S is valid. This function checks whether a given shape is valid by checking that:
const Handle< BRepCheck_Result >& BRepCheck_Analyzer::Result | ( | const TopoDS_Shape & | SubS | ) | const |