Creates a 3D extrusion (Prism 3D) or RadialPrism 3D algorithm for solids.
If the optional geom parameter is not set, this algorithm is global. Otherwise, this algorithm defines a submesh based on geom subshape.
- Parameters:
-
| geom | If defined, the subshape to be meshed |
- Returns:
- an instance of Mesh_Prism3D or Mesh_RadialPrism3D algorithm
Definition at line 1393 of file smeshDC.py.
01394 :
01395 shape = geom
01396 if shape==0:
01397 shape = self.geom
01398 nbSolids = len( self.geompyD.SubShapeAll( shape, geompyDC.ShapeType["SOLID"] ))
01399 nbShells = len( self.geompyD.SubShapeAll( shape, geompyDC.ShapeType["SHELL"] ))
01400 if nbSolids == 0 or nbSolids == nbShells:
01401 return Mesh_Prism3D(self, geom)
01402 return Mesh_RadialPrism3D(self, geom)