Version: 6.5.0
Home
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
Access to sub-shapes by their unique IDs inside the main shape
Creating Advanced Geometrical Objects

Functions

def geompy.GetSubShape
 Obtain a composite sub-shape of aShape, composed from sub-shapes of aShape, selected by their unique IDs inside aShape
def geompy.GetSubShapeID
 Obtain unique ID of sub-shape aSubShape inside aShape of aShape, selected by their unique IDs inside aShape

Detailed Description

Function Documentation

def geompy.GetSubShape (   self,
  aShape,
  ListOfID 
)

Obtain a composite sub-shape of aShape, composed from sub-shapes of aShape, selected by their unique IDs inside aShape

Parameters
aShapeShape to get sub-shape of.
ListOfIDList of sub-shapes indices.
Returns
Found sub-shape.

Example

def geompy.GetSubShapeID (   self,
  aShape,
  aSubShape 
)

Obtain unique ID of sub-shape aSubShape inside aShape of aShape, selected by their unique IDs inside aShape

Parameters
aShapeShape to get sub-shape of.
aSubShapeSub-shapes of aShape.
Returns
ID of found sub-shape.

Example

References geompy.RaiseIfFailed().

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