Version: 9.15.0
Home

An interface to find imperfections in the shape. More...

Public Member Functions

def __init__ (self, shape, geompyD)
 
def isValid (self)
 Check whether the shape is applicable for Boolean Operations. More...
 
def selfIntersected2D (self)
 Find all self-intersected 2D curves. More...
 
def interferingSubshapes (self, shapeType1=AUTO, shapeType2=AUTO)
 Find pairs of interfering sub-shapes: More...
 
def smallEdges (self)
 Find edges, which are fully covered by tolerances of vertices. More...
 
def distantShapes (self, shapeType=AUTO, subShapeType=AUTO, tolerance=-1.0)
 Find remote objects (sub-shape on a shape): More...
 
def updateTolerance (self)
 Compute possible tolerance for the shape, minimize tolerance of shape as well as tolerance of sub-shapes as much as possible . More...
 

Data Fields

 geompyD
 
 myShape
 
 myIsChecked
 
 myResults
 

Static Public Attributes

int AUTO = -1
 

Private Member Functions

def __checkShape (self)
 Perform analyse of shape. More...
 

Detailed Description

An interface to find imperfections in the shape.

Use geompy.CheckConformity(shape) method to obtain an instance of this class

Example

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  shape,
  geompyD 
)

Member Function Documentation

◆ __checkShape()

def __checkShape (   self)
private

Perform analyse of shape.

Returns
New List, which contains pair: type of check and single of pair failed sub-shapes.

References CheckConformity.geompyD, Sketcher3D.geompyD, Sketcher2D.geompyD, Polyline2D.geompyD, CheckConformity.myIsChecked, CheckConformity.myResults, and CheckConformity.myShape.

◆ isValid()

def isValid (   self)

Check whether the shape is applicable for Boolean Operations.

Returns
Boolean value True if shape is applicable for Boolean Operations, otherwise - False

References CheckConformity.__checkShape(), CheckConformity.myIsChecked, and CheckConformity.myResults.

◆ selfIntersected2D()

def selfIntersected2D (   self)

Find all self-intersected 2D curves.

Returns
New List, of pair sub-shape, which has self-intersected in 2D

References CheckConformity.__checkShape(), CheckConformity.geompyD, Sketcher3D.geompyD, Sketcher2D.geompyD, Polyline2D.geompyD, CheckConformity.myIsChecked, and CheckConformity.myResults.

◆ interferingSubshapes()

def interferingSubshapes (   self,
  shapeType1 = AUTO,
  shapeType2 = AUTO 
)

Find pairs of interfering sub-shapes:

  • vertices touched by tolerance;
  • vertex touching an edge in the inner point;
  • vertex lying on the inner point of a face;
  • edges intersecting by inner points;
  • edge touching/intersecting face in the inner point;
  • faces intersection by inner point

Types of interfering shapes could be specified, by default all pairs of interfering shapes are returned.

Parameters
shapeType1first type of shape
shapeType2second type of shape
Returns
New List, of pairs of interfering shapes with given types (if they was specified)

References CheckConformity.__checkShape(), CheckConformity.geompyD, Sketcher3D.geompyD, Sketcher2D.geompyD, Polyline2D.geompyD, CheckConformity.myIsChecked, and CheckConformity.myResults.

◆ smallEdges()

def smallEdges (   self)

Find edges, which are fully covered by tolerances of vertices.

Returns
New List of 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.

◆ distantShapes()

def distantShapes (   self,
  shapeType = AUTO,
  subShapeType = AUTO,
  tolerance = -1.0 
)

Find remote objects (sub-shape on a shape):

  • vertex far from edge;
  • vertex far from face;
  • edge far from face

Sub-shape which are lying far from its parent shape more than the given tolerance.

Parameters
shapeTypetype of shape
subShapeTypetype of sub-shape
toleranceavailable tolerance, by default used tolerance of sub-shape.
Returns
New List, of pair of sub-shape with given types, that lying far from its parent shape more than the given tolerance.

References CheckConformity.__checkShape(), CheckConformity.geompyD, Sketcher3D.geompyD, Sketcher2D.geompyD, Polyline2D.geompyD, CheckConformity.myIsChecked, and CheckConformity.myResults.

◆ updateTolerance()

def updateTolerance (   self)

Compute possible tolerance for the shape, minimize tolerance of shape as well as tolerance of sub-shapes as much as possible .

Returns
New value of tolerance.

References CheckConformity.geompyD, Sketcher3D.geompyD, Sketcher2D.geompyD, Polyline2D.geompyD, and CheckConformity.myShape.

Field Documentation

◆ AUTO

int AUTO = -1
static

◆ geompyD

geompyD

◆ myShape

myShape

◆ myIsChecked

myIsChecked

◆ myResults

myResults