Version: 6.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
Check Compound of Blocks

Checks whether a shape is a compound of glued blocks. 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 connected;
  • Two quadrangle faces should be glued.


Informs of the following possible errors:

  • not a block;
  • not glued;
  • not connected;
  • extra or degenerated edge.


Result: Boolean; highlight in the viewer.
TUI Command: geompy.CheckCompoundOfBlocks(Compound). Checks if the shape is a valid compound of blocks. If it is true, then the validity flag is returned, and encountered errors are printed in the python console.

See also a TUI example.

measures10.png
Copyright © 2007-2012 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