Version: 6.3.1
Home
Functions

Check and Improve

Building by blocks

Functions

def geompy.CheckCompoundOfBlocks
 Check, if the compound of blocks is given.
def geompy.RemoveExtraEdges
 Remove all seam and degenerated edges from theShape.
def geompy.CheckAndImprove
 Check, if the given shape is a blocks compound.

Function Documentation

def geompy.CheckCompoundOfBlocks (   self,
  theCompound 
)

Check, if the compound of blocks is given.

To be considered as a compound of blocks, the given shape must satisfy the following conditions:

  • Each element of the compound should be a Block (6 faces and 12 edges).
  • A connection between two Blocks should be an entire quadrangle face or an entire edge.
  • The compound should be connexe.
  • The glue between two quadrangle faces should be applied.
    Parameters:
    theCompoundThe compound to check.
    Returns:
    TRUE, if the given shape is a compound of blocks. If theCompound is not valid, prints all discovered errors.
    Example 1
    Example 2
def geompy.RemoveExtraEdges (   self,
  theShape,
  doUnionFaces = False 
)

Remove all seam and degenerated edges from theShape.

Unite faces and edges, sharing one surface. It means that this faces must have references to one C++ surface object (handle).

Parameters:
theShapeThe compound or single solid to remove irregular edges from.
doUnionFacesIf True, then unite faces. If False (the default value), do not unite faces.
Returns:
Improved shape.

Example

def geompy.CheckAndImprove (   self,
  theShape 
)

Check, if the given shape is a blocks compound.

Fix all detected errors.

Note:
Single block can be also fixed by this method.
Parameters:
theShapeThe compound to check and improve.
Returns:
Improved compound.

Example

 All Data Structures Namespaces Files Functions Variables
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS