An interface to find imperfections in the shape. More...
Public Member Functions | |
| __init__ (self, shape, geompyD) | |
| isValid (self) | |
| Check whether the shape is applicable for Boolean Operations. | |
| selfIntersected2D (self) | |
| Find all self-intersected 2D curves. | |
| interferingSubshapes (self, shapeType1=AUTO, shapeType2=AUTO) | |
| Find pairs of interfering sub-shapes: | |
| smallEdges (self) | |
| Find edges, which are fully covered by tolerances of vertices. | |
| distantShapes (self, shapeType=AUTO, subShapeType=AUTO, tolerance=-1.0) | |
| Find remote objects (sub-shape on a shape): | |
| updateTolerance (self) | |
| Compute possible tolerance for the shape, minimize tolerance of shape as well as tolerance of sub-shapes as much as possible . | |
Data Fields | |
| geompyD | |
| myShape | |
| myIsChecked | |
| myResults | |
Static Public Attributes | |
| int | AUTO = -1 |
Private Member Functions | |
| __checkShape (self) | |
| Perform analyse of shape. | |
An interface to find imperfections in the shape.
Use geompy.CheckConformity(shape) method to obtain an instance of this class
| __init__ | ( | self, | |
| shape, | |||
| geompyD | |||
| ) |
|
private |
Perform analyse of shape.
References CheckConformity.geompyD, Sketcher3D.geompyD, Sketcher2D.geompyD, Polyline2D.geompyD, CheckConformity.myIsChecked, CheckConformity.myResults, and CheckConformity.myShape.
| isValid | ( | self | ) |
Check whether the shape is applicable for Boolean Operations.
References CheckConformity.__checkShape(), CheckConformity.myIsChecked, and CheckConformity.myResults.
| selfIntersected2D | ( | self | ) |
Find all self-intersected 2D curves.
References CheckConformity.__checkShape(), CheckConformity.geompyD, Sketcher3D.geompyD, Sketcher2D.geompyD, Polyline2D.geompyD, CheckConformity.myIsChecked, and CheckConformity.myResults.
Find pairs of interfering sub-shapes:
Types of interfering shapes could be specified, by default all pairs of interfering shapes are returned.
| shapeType1 | first type of shape |
| shapeType2 | second type of shape |
References CheckConformity.__checkShape(), CheckConformity.geompyD, Sketcher3D.geompyD, Sketcher2D.geompyD, Polyline2D.geompyD, CheckConformity.myIsChecked, and CheckConformity.myResults.
| smallEdges | ( | self | ) |
Find edges, which are fully covered by tolerances of vertices.
References CheckConformity.__checkShape(), CheckConformity.geompyD, Sketcher3D.geompyD, Sketcher2D.geompyD, Polyline2D.geompyD, CheckConformity.myIsChecked, and CheckConformity.myResults.
Find remote objects (sub-shape on a shape):
Sub-shape which are lying far from its parent shape more than the given tolerance.
| shapeType | type of shape |
| subShapeType | type of sub-shape |
| tolerance | available tolerance, by default used tolerance of sub-shape. |
References CheckConformity.__checkShape(), CheckConformity.geompyD, Sketcher3D.geompyD, Sketcher2D.geompyD, Polyline2D.geompyD, CheckConformity.myIsChecked, and CheckConformity.myResults.
| updateTolerance | ( | self | ) |
Compute possible tolerance for the shape, minimize tolerance of shape as well as tolerance of sub-shapes as much as possible .
References CheckConformity.geompyD, Sketcher3D.geompyD, Sketcher2D.geompyD, Polyline2D.geompyD, and CheckConformity.myShape.
|
static |
| geompyD |
| myShape |
| myIsChecked |
| myResults |