From 35ba9b8c12422eeeb76f26c6c1dba41187ae1018 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 29 Mar 2013 13:17:47 +0000 Subject: [PATCH 1/1] 0051789: TC7.2.0: NoteBook cannot update study Enable calling mesh.Prism('RadialPrism_3D') +class StdMeshersDC_RadialPrism3D(StdMeshersDC_Prism3D): + ... --- src/SMESH_SWIG/StdMeshersDC.py | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/SMESH_SWIG/StdMeshersDC.py b/src/SMESH_SWIG/StdMeshersDC.py index 60a65a673..87a677d73 100644 --- a/src/SMESH_SWIG/StdMeshersDC.py +++ b/src/SMESH_SWIG/StdMeshersDC.py @@ -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) -- 2.39.2