Salome HOME
0051789: TC7.2.0: NoteBook cannot update study
authoreap <eap@opencascade.com>
Fri, 29 Mar 2013 13:17:47 +0000 (13:17 +0000)
committereap <eap@opencascade.com>
Fri, 29 Mar 2013 13:17:47 +0000 (13:17 +0000)
Enable calling mesh.Prism('RadialPrism_3D')

+class StdMeshersDC_RadialPrism3D(StdMeshersDC_Prism3D):
+ ...

src/SMESH_SWIG/StdMeshersDC.py

index 60a65a67312cdf807c23e41d564c1c5017a249f8..87a677d73db61d8f55ac26a6309ea73a5a6fd646 100644 (file)
@@ -983,6 +983,39 @@ class StdMeshersDC_Prism3D(Mesh_Algorithm):
 
     pass # end of StdMeshersDC_Prism3D class
 
+## Defines a Prism 3D algorithm, which is either "Extrusion 3D" or "Radial Prism"
+#  depending on geometry
+# 
+#  It is created by calling smesh.Mesh.Prism(geom=0)
+#
+#  @ingroup l3_algos_3dextr
+class StdMeshersDC_RadialPrism3D(StdMeshersDC_Prism3D):
+
+    ## name of the dynamic method in smesh.Mesh class
+    #  @internal
+    meshMethod = "Prism"
+    ## type of algorithm used with helper function in smesh.Mesh class
+    #  @internal
+    algoType   = "RadialPrism_3D"
+    ## doc string of the method
+    #  @internal
+    docHelper  = "Creates prism 3D algorithm for volumes"
+
+    ## Private constructor.
+    #  @param mesh parent mesh object algorithm is assigned to
+    #  @param geom geometry (shape/sub-shape) algorithm is assigned to;
+    #              if it is @c 0 (default), the algorithm is assigned to the main shape
+    def __init__(self, mesh, geom=0):
+        Mesh_Algorithm.__init__(self)
+        
+        shape = geom
+        if not shape:
+            shape = mesh.geom
+        self.Create(mesh, geom, "RadialPrism_3D")
+        self.distribHyp = self.Hypothesis("LayerDistribution", UseExisting=0)
+        self.nbLayers = None
+        return
+
 ## Defines a Radial Quadrangle 1D-2D algorithm
 # 
 #  It is created by calling smesh.Mesh.Quadrangle(smesh.RADIAL_QUAD,geom=0)