- if direction == "Inward":
- self.Parameters().SetDirection(True)
- elif direction == "Outward":
- self.Parameters().SetDirection(False)
+ self.Parameters().SetDirection(direction)
+ if facesWithLayers and isinstance( facesWithLayers[0], geomBuilder.GEOM._objref_GEOM_Object ):
+ import GEOM
+ facesWithLayersIDs = []
+ for f in facesWithLayers:
+ if self.mesh.geompyD.ShapeIdToType( f.GetType() ) == "GROUP":
+ facesWithLayersIDs += f.GetSubShapeIndices()
+ else:
+ facesWithLayersIDs += [self.mesh.geompyD.GetSubShapeID(self.mesh.geom, f)]
+ facesWithLayers = facesWithLayersIDs
+
+ if imprintedFaces and isinstance( imprintedFaces[0], geomBuilder.GEOM._objref_GEOM_Object ):
+ import GEOM
+ imprintedFacesIDs = []
+ for f in imprintedFaces:
+ if self.mesh.geompyD.ShapeIdToType( f.GetType() ) == "GROUP":
+ imprintedFacesIDs += f.GetSubShapeIndices()
+ else:
+ imprintedFacesIDs += [self.mesh.geompyD.GetSubShapeID(self.mesh.geom, f)]
+ imprintedFaces = imprintedFacesIDs