- except:
- # try to get the SHAPERSTUDY engine directly, because GetGen does not work because of
- # simplification of access in geomBuilder: omniORB.registerObjref
- from SHAPERSTUDY_utils import getEngine
- gen = getEngine()
- if gen:
- aShapeOp = gen.GetIShapesOperations()
- ff = aShapeOp.ExtractSubShapes( shape, self.mesh.geompyD.ShapeType["FACE"], False)
- for f in ff:
- faceIDs.append( aShapeOp.GetSubShapeIndex( self.mesh.geom, f ))