BRepCheck
OCCT package BRepCheck: BRepCheck, BRepCheck_Analyzer, BRepCheck_Edge, BRepCheck_Face, and 6 more bound classes.
BRepCheck
This package provides tools to check the validity of the BRep.
Constructors(1)
Static methods(4)
- Add(List: NCollection_List_BRepCheck_Status, Stat: BRepCheck_Status): voidParameters (2)
ListStat
- SelfIntersection(W: TopoDS_Wire, F: TopoDS_Face, E1: TopoDS_Edge, E2: TopoDS_Edge): booleanParameters (4)
WFE1E2
- PrecCurve(aAC3D: Adaptor3d_Curve): number
Returns the resolution on the 3d curve.
Parameters (1)aAC3D
- PrecSurface(aAHSurf: Adaptor3d_Surface): number
Returns the resolution on the surface.
Parameters (1)aAHSurf
BRepCheck_Analyzer
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.
Constructors(1)
- constructor(S: TopoDS_Shape, GeomControls?: boolean, theIsParallel?: boolean, theIsExact?: boolean): BRepCheck_Analyzer
Constructs a shape validation object defined by the shape 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.
Parameters (4)SGeomControlstheIsParalleltheIsExact
Instance methods(8)
- Init(S: TopoDS_Shape, GeomControls?: boolean): void
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
Parameters (2)SGeomControls
- SetExactMethod(theIsExact: boolean): void
Sets method to calculate distance: Calculating in finite number of points (if theIsExact is false, faster, but possible not correct result) or exact calculating by using
BRepLib_CheckCurveOnSurfaceclass (if theIsExact is true, slowly, but more correctly). Exact method is used only when edge is SameParameter. Default method is calculating in finite number of points.Parameters (1)theIsExact
- IsExactMethod(): boolean
Returns true if exact method selected.
- SetParallel(theIsParallel: boolean): void
Sets parallel flag.
Parameters (1)theIsParallel
- IsParallel(): boolean
Returns true if parallel flag is set.
- IsValid(S: TopoDS_Shape): boolean
is a subshape of the original shape. Returns <STandard_True> if no default has been detected on and any of its subshape.
Parameters (1)S
- IsValid(): boolean
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:
- the topology is correct
- parameterization of edges in particular is correct. For the topology to be correct, the following conditions must be satisfied:
- edges should have at least two vertices if they are not degenerate edges. The vertices should be within the range of the bounding edges at the tolerance specified in the vertex,
- edges should share at least one face. The representation of the edges should be within the tolerance criterion assigned to them.
- wires defining a face should not self-intersect and should be closed,
- there should be one wire which contains all other wires inside a face,
- wires should be correctly oriented with respect to each of the edges,
- faces should be correctly oriented, in particular with respect to adjacent faces if these faces define a solid,
- shells defining a solid should be closed. There should be one enclosing shell if the shape is a solid; To check parameterization of edge, there are 2 approaches depending on the edge?s contextual situation.
- if the edge is either single, or it is in the context of a wire or a compound, its parameterization is defined by the parameterization of its 3D curve and is considered as valid.
- If the edge is in the context of a face, it should have SameParameter and SameRange flags set to true. To check these flags, you should call the function
BRep_Tool::SameParameterandBRep_Tool::SameRangefor an edge. If at least one of these flags is set to false, the edge is considered as invalid without any additional check.
If the edge is contained by a face, and it has SameParameter and SameRange flags set to true, IsValid checks whether representation of the edge on face, in context of which the edge is considered, has the same parameterization up to the tolerance value coded on the edge.
For a given parameter t on the edge having C as a 3D curve and one PCurve P on a surface S (base surface of the reference face), this checks that |C(t) - S(P(t))| is less than or equal to tolerance, where tolerance is the tolerance value coded on the edge.
- Result(theSubS: TopoDS_Shape): BRepCheck_ResultParameters (1)
theSubS
BRepCheck_Edge
Constructors(1)
- Parameters (1)
E
Static methods(2)
- get_type_name(): string
Instance methods(11)
- InContext(ContextShape: TopoDS_Shape): voidParameters (1)
ContextShape
- Minimum(): void
- Blind(): void
- GeometricControls(): boolean
- GeometricControls(B: boolean): voidParameters (1)
B
- Tolerance(): number
- SetStatus(theStatus: BRepCheck_Status): void
Sets status of Edge;.
Parameters (1)theStatus
- SetExactMethod(theIsExact: boolean): void
Sets method to calculate distance: Calculating in finite number of points (if theIsExact is false, faster, but possible not correct result) or exact calculating by using
BRepLib_CheckCurveOnSurfaceclass (if theIsExact is true, slowly, but more correctly). Exact method is used only when edge is SameParameter. Default method is calculating in finite number of points.Parameters (1)theIsExact
- IsExactMethod(): boolean
Returns true if exact method selected.
Checks, if polygon on triangulation of heEdge is out of 3D-curve of this edge.
Parameters (1)theEdge
BRepCheck_Face
Constructors(1)
- Parameters (1)
F
Static methods(2)
- get_type_name(): string
Instance methods(12)
- InContext(ContextShape: TopoDS_Shape): voidParameters (1)
ContextShape
- Minimum(): void
- Blind(): void
- IntersectWires(Update?: boolean): BRepCheck_StatusParameters (1)
Update
- ClassifyWires(Update?: boolean): BRepCheck_StatusParameters (1)
Update
- OrientationOfWires(Update?: boolean): BRepCheck_StatusParameters (1)
Update
- SetUnorientable(): void
- SetStatus(theStatus: BRepCheck_Status): void
Sets status of Face;.
Parameters (1)theStatus
- IsUnorientable(): boolean
- GeometricControls(): boolean
- GeometricControls(B: boolean): voidParameters (1)
B
BRepCheck_Result
Static methods(2)
- get_type_name(): string
Instance methods(18)
- Init(S: TopoDS_Shape): voidParameters (1)
S
- InContext(ContextShape: TopoDS_Shape): voidParameters (1)
ContextShape
- Minimum(): void
- Blind(): void
- SetFailStatus(S: TopoDS_Shape): voidParameters (1)
S
- IsMinimum(): boolean
- IsBlind(): boolean
- InitContextIterator(): void
- MoreShapeInContext(): boolean
- Parameters (1)
theShape
- NextShapeInContext(): void
- SetParallel(theIsParallel: boolean): void
Sets the parallel execution flag for sub-algorithms.
Parameters (1)theIsParallel
- IsParallel(): boolean
Returns TRUE if sub-algorithms should use parallel execution.
- IsStatusOnShape(theShape: TopoDS_Shape): booleanParameters (1)
theShape
BRepCheck_Shell
Constructors(1)
- Parameters (1)
S
Static methods(2)
- get_type_name(): string
Instance methods(9)
- InContext(ContextShape: TopoDS_Shape): voidParameters (1)
ContextShape
- Minimum(): void
- Blind(): void
- Closed(Update?: boolean): BRepCheck_Status
Checks if the oriented faces of the shell give a closed shell. If the wire is closed, returns BRepCheck_NoError. If <Update> is set to true, registers the status in the list.
Parameters (1)Update
- Orientation(Update?: boolean): BRepCheck_Status
Checks if the oriented faces of the shell are correctly oriented. An internal call is made to the method Closed. If <Update> is set to true, registers the status in the list.
Parameters (1)Update
- SetUnorientable(): void
- IsUnorientable(): boolean
- NbConnectedSet(theSets: NCollection_List_TopoDS_Shape): numberParameters (1)
theSets
BRepCheck_Solid
The class is to check a solid.
Constructors(1)
- constructor(theS: TopoDS_Solid): BRepCheck_Solid
Constructor <theS> is the solid to check.
Parameters (1)theS
Static methods(2)
- get_type_name(): string
Instance methods(4)
- InContext(ContextShape: TopoDS_Shape): void
Checks the solid in context of the shape <theContextShape>.
Parameters (1)ContextShape
- Minimum(): void
Checks the solid per se.
The scan area is:- Shells that overlaps each other Status: BRepCheck_InvalidImbricationOfShells
- Detached parts of the solid (vertices, edges) that have non-internal orientation Status: BRepCheck_BadOrientationOfSubshape
- For closed, non-internal shells: 3.1 Shells containing entities of the solid that are outside towards the shells Status: BRepCheck_SubshapeNotInShape
3.2 Shells that encloses other Shells (for non-holes) Status: BRepCheck_EnclosedRegion
- Blind(): void
see the parent class for more details
BRepCheck_Status
Properties(37)
BRepCheck_Vertex
Constructors(1)
- Parameters (1)
V
Static methods(2)
- get_type_name(): string
Instance methods(5)
- InContext(ContextShape: TopoDS_Shape): voidParameters (1)
ContextShape
- Minimum(): void
- Blind(): void
- Tolerance(): number
BRepCheck_Wire
Constructors(1)
- Parameters (1)
W
Static methods(2)
- get_type_name(): string
Instance methods(11)
- InContext(ContextShape: TopoDS_Shape): void
if <ContextShape> is a face, consequently checks
SelfIntersect(),Closed(),Orientation()and Closed2d until faulty is foundParameters (1)ContextShape
- Minimum(): void
checks that the wire is not empty and "connex". Called by constructor
- Blind(): void
Does nothing.
- Closed(Update?: boolean): BRepCheck_Status
Checks if the oriented edges of the wire give a closed wire. If the wire is closed, returns BRepCheck_NoError. Warning: if the first and last edge are infinite, the wire will be considered as a closed one. If <Update> is set to true, registers the status in the list. May return (and registers): **BRepCheck_NotConnected, if wire is not topologically closed **BRepCheck_RedundantEdge, if an edge is in wire more than 3 times or in case of 2 occurrences if not with FORWARD and REVERSED orientation. **BRepCheck_NoError.
Parameters (1)Update
- Closed2d(F: TopoDS_Face, Update?: boolean): BRepCheck_Status
Checks if edges of the wire give a wire closed in 2d space. Returns BRepCheck_NoError, or BRepCheck_NotClosed If <Update> is set to true, registers the status in the list.
Parameters (2)FUpdate
- Orientation(F: TopoDS_Face, Update?: boolean): BRepCheck_Status
Checks if the oriented edges of the wire are correctly oriented. An internal call is made to the method Closed. If no face exists, call the method with a null face (TopoDS_face()). If <Update> is set to true, registers the status in the list. May return (and registers): BRepCheck_InvalidDegeneratedFlag, BRepCheck_BadOrientationOfSubshape, BRepCheck_NotClosed, BRepCheck_NoError.
Parameters (2)FUpdate
- SelfIntersect(F: TopoDS_Face, E1: TopoDS_Edge, E2: TopoDS_Edge, Update: boolean): BRepCheck_Status
Checks if the wire intersect itself on the face <F>. <E1> and <E2> are the first intersecting edges found. <E2> may be a null edge when a self-intersecting edge is found.If <Update> is set to true, registers the status in the list. May return (and register): BRepCheck_EmptyWire, BRepCheck_SelfIntersectingWire, BRepCheck_NoCurveOnSurface, BRepCheck_NoError.
Parameters (4)FE1—Mutated in place; read the updated value from this argument after the call.E2—Mutated in place; read the updated value from this argument after the call.Update
- GeometricControls(): boolean
report
SelfIntersect()check would be (is) done - GeometricControls(B: boolean): void
set
SelfIntersect()to be checkedParameters (1)B
- SetStatus(theStatus: BRepCheck_Status): void
Sets status of Wire;.
Parameters (1)theStatus
BRepBuilderAPI
OCCT package BRepBuilderAPI: BRepBuilderAPI, BRepBuilderAPI_BndBoxTreeSelector, BRepBuilderAPI_Collect, BRepBuilderAPI_Command, and 26 more bound classes.
BRepClass
OCCT package BRepClass: BRepClass_Edge, BRepClass_FaceClassifier, BRepClass_FacePassiveClassifier, BRepClass_FClass2dOfFClassifier, and 2 more bound classes.