Salome HOME
fix raising exception in algoCreator.__call__()
[modules/smesh.git] / src / SMESH_SWIG / StdMeshersDC.py
index c252513f74ae6959dba7fe3faa71cc8b7455adb3..d272629c63ff606cb7f5a8ff25cd87240fc7f618 100644 (file)
@@ -19,6 +19,7 @@
 #
 
 from smesh import Mesh_Algorithm, AssureGeomPublished, IsEqual, ParseParameters
+from smesh import GetName, TreatHypoStatus
 from smeshDC import Mesh
 
 import StdMeshers
@@ -44,9 +45,11 @@ for e in StdMeshers.QuadType._items: exec('%s = StdMeshers.%s'%(e,e))
 #  calling Mesh.Segment(geom=0)
 #
 #  @ingroup l3_algos_basic
-class Mesh_Segment(Mesh_Algorithm):
+class StdMeshersDC_Segment(Mesh_Algorithm):
 
+    ## Name of method of class Mesh creating an instance of this class
     meshMethod = "Segment"
+    ## Name of algorithm type
     algoType   = REGULAR
     isDefault  = True
 
@@ -318,9 +321,11 @@ class Mesh_Segment(Mesh_Algorithm):
 #  It is created by calling Mesh.Segment(COMPOSITE,geom=0)
 #
 #  @ingroup l3_algos_basic
-class Mesh_CompositeSegment(Mesh_Segment):
+class StdMeshersDC_CompositeSegment(StdMeshersDC_Segment):
 
+    ## Name of method of class Mesh creating an instance of this class
     meshMethod = "Segment"
+    ## Name of algorithm type
     algoType   = COMPOSITE
     isDefault  = False
 
@@ -336,9 +341,11 @@ class Mesh_CompositeSegment(Mesh_Segment):
 #  It is created by calling Mesh.Segment(PYTHON,geom=0)
 #
 #  @ingroup l3_algos_basic
-class Mesh_Segment_Python(Mesh_Algorithm):
+class StdMeshersDC_Segment_Python(Mesh_Algorithm):
 
+    ## Name of method of class Mesh creating an instance of this class
     meshMethod = "Segment"
+    ## Name of algorithm type
     algoType   = PYTHON
 
     ## Private constructor.
@@ -367,9 +374,11 @@ class Mesh_Segment_Python(Mesh_Algorithm):
 #  It is created by calling Mesh.Triangle(MEFISTO,geom=0)
 #
 #  @ingroup l3_algos_basic
-class Mesh_Triangle_MEFISTO(Mesh_Algorithm):
+class StdMeshersDC_Triangle_MEFISTO(Mesh_Algorithm):
 
+    ## Name of method of class Mesh creating an instance of this class
     meshMethod = "Triangle"
+    ## Name of algorithm type
     algoType   = MEFISTO
     isDefault  = True
 
@@ -406,9 +415,11 @@ class Mesh_Triangle_MEFISTO(Mesh_Algorithm):
 #  It is created by calling Mesh.Quadrangle(geom=0)
 #
 #  @ingroup l3_algos_basic
-class Mesh_Quadrangle(Mesh_Algorithm):
+class StdMeshersDC_Quadrangle(Mesh_Algorithm):
 
+    ## Name of method of class Mesh creating an instance of this class
     meshMethod = "Quadrangle"
+    ## Name of algorithm type
     algoType   = QUADRANGLE
     isDefault  = True
 
@@ -512,9 +523,11 @@ class Mesh_Quadrangle(Mesh_Algorithm):
 #  It is created by calling Mesh.Hexahedron(geom=0)
 #
 #  @ingroup l3_algos_basic
-class Mesh_Hexahedron(Mesh_Algorithm):
+class StdMeshersDC_Hexahedron(Mesh_Algorithm):
 
+    ## Name of method of class Mesh creating an instance of this class
     meshMethod = "Hexahedron"
+    ## Name of algorithm type
     algoType   = Hexa
     isDefault  = True
 
@@ -531,9 +544,11 @@ class Mesh_Hexahedron(Mesh_Algorithm):
 #  It is created by calling Mesh.Projection1D(geom=0)
 #  @ingroup l3_algos_proj
 #
-class Mesh_Projection1D(Mesh_Algorithm):
+class StdMeshersDC_Projection1D(Mesh_Algorithm):
 
+    ## Name of method of class Mesh creating an instance of this class
     meshMethod = "Projection1D"
+    ## Name of algorithm type
     algoType   = "Projection_1D"
     isDefault  = True
 
@@ -575,9 +590,11 @@ class Mesh_Projection1D(Mesh_Algorithm):
 #  It is created by calling Mesh.Projection2D(geom=0)
 #  @ingroup l3_algos_proj
 #
-class Mesh_Projection2D(Mesh_Algorithm):
+class StdMeshersDC_Projection2D(Mesh_Algorithm):
 
+    ## Name of method of class Mesh creating an instance of this class
     meshMethod = "Projection2D"
+    ## Name of algorithm type
     algoType   = "Projection_2D"
     isDefault  = True
 
@@ -625,14 +642,16 @@ class Mesh_Projection2D(Mesh_Algorithm):
 #
 #  @ingroup l3_algos_proj
 
-class Mesh_Projection1D2D(Mesh_Projection2D):
+class StdMeshersDC_Projection1D2D(StdMeshersDC_Projection2D):
 
+    ## Name of method of class Mesh creating an instance of this class
     meshMethod = "Projection1D2D"
+    ## Name of algorithm type
     algoType   = "Projection_1D2D"
 
     ## Private constructor.
     def __init__(self, mesh, geom=0):
-        Mesh_Projection2D.__init__(self, mesh, geom)
+        StdMeshersDC_Projection2D.__init__(self, mesh, geom)
 
 # Public class: Mesh_Projection3D
 # ------------------------------
@@ -642,9 +661,11 @@ class Mesh_Projection1D2D(Mesh_Projection2D):
 #
 #  @ingroup l3_algos_proj
 #
-class Mesh_Projection3D(Mesh_Algorithm):
+class StdMeshersDC_Projection3D(Mesh_Algorithm):
 
+    ## Name of method of class Mesh creating an instance of this class
     meshMethod = "Projection3D"
+    ## Name of algorithm type
     algoType   = "Projection_3D"
 
     ## Private constructor.
@@ -695,9 +716,11 @@ class Mesh_Projection3D(Mesh_Algorithm):
 #
 #  @ingroup l3_algos_3dextr
 #
-class Mesh_Prism3D(Mesh_Algorithm):
+class StdMeshersDC_Prism3D(Mesh_Algorithm):
 
+    ## Name of method of class Mesh creating an instance of this class
     meshMethod = "Prism"
+    ## Name of algorithm type
     algoType   = "Prism_3D"
 
     ## Private constructor.
@@ -832,9 +855,11 @@ class Mesh_Prism3D(Mesh_Algorithm):
 #  It is created by calling Mesh.Quadrangle(RADIAL_QUAD,geom=0)
 #
 #  @ingroup l2_algos_radialq
-class Mesh_RadialQuadrangle1D2D(Mesh_Algorithm):
+class StdMeshersDC_RadialQuadrangle1D2D(Mesh_Algorithm):
 
+    ## Name of method of class Mesh creating an instance of this class
     meshMethod = "Quadrangle"
+    ## Name of algorithm type
     algoType   = RADIAL_QUAD
 
     ## Private constructor.
@@ -936,9 +961,11 @@ class Mesh_RadialQuadrangle1D2D(Mesh_Algorithm):
 #  It is created by calling Mesh.UseExisting1DElements(geom=0)
 #
 #  @ingroup l3_algos_basic
-class Mesh_UseExistingElements_1D(Mesh_Algorithm):
+class StdMeshersDC_UseExistingElements_1D(Mesh_Algorithm):
 
+    ## Name of method of class Mesh creating an instance of this class
     meshMethod = "UseExisting1DElements"
+    ## Name of algorithm type
     algoType   = "Import_1D"
     isDefault  = True
 
@@ -970,9 +997,11 @@ class Mesh_UseExistingElements_1D(Mesh_Algorithm):
 #  It is created by calling Mesh.UseExisting2DElements(geom=0)
 #
 #  @ingroup l3_algos_basic
-class Mesh_UseExistingElements_1D2D(Mesh_Algorithm):
+class StdMeshersDC_UseExistingElements_1D2D(Mesh_Algorithm):
 
+    ## Name of method of class Mesh creating an instance of this class
     meshMethod = "UseExisting2DElements"
+    ## Name of algorithm type
     algoType   = "Import_1D2D"
     isDefault  = True
 
@@ -1005,9 +1034,11 @@ class Mesh_UseExistingElements_1D2D(Mesh_Algorithm):
 #  It is created by calling Mesh.BodyFitted(geom=0)
 #
 #  @ingroup l3_algos_basic
-class Mesh_Cartesian_3D(Mesh_Algorithm):
+class StdMeshersDC_Cartesian_3D(Mesh_Algorithm):
 
+    ## Name of method of class Mesh creating an instance of this class
     meshMethod = "BodyFitted"
+    ## Name of algorithm type
     algoType   = "Cartesian_3D"
     isDefault  = True
 
@@ -1065,9 +1096,11 @@ class Mesh_Cartesian_3D(Mesh_Algorithm):
 #
 #  @ingroup l3_algos_basic
 
-class Mesh_UseExisting_1D(Mesh_Algorithm):
+class StdMeshersDC_UseExisting_1D(Mesh_Algorithm):
 
+    ## Name of method of class Mesh creating an instance of this class
     meshMethod = "UseExistingSegments"
+    ## Name of algorithm type
     algoType   = "UseExisting_1D"
 
     def __init__(self, mesh, geom=0):
@@ -1082,9 +1115,11 @@ class Mesh_UseExisting_1D(Mesh_Algorithm):
 #
 #  @ingroup l3_algos_basic
 
-class Mesh_UseExisting_2D(Mesh_Algorithm):
+class StdMeshersDC_UseExisting_2D(Mesh_Algorithm):
 
+    ## Name of method of class Mesh creating an instance of this class
     meshMethod = "UseExistingFaces"
+    ## Name of algorithm type
     algoType   = "UseExisting_2D"
 
     def __init__(self, mesh, geom=0):