]> SALOME platform Git repositories - plugins/gmshplugin.git/blobdiff - src/GMSHPlugin/GMSHPluginBuilder.py
Salome HOME
[bos #38046] [EDF] (2023-T3) Stand alone and Remote versions for GMSH meshers.
[plugins/gmshplugin.git] / src / GMSHPlugin / GMSHPluginBuilder.py
index 80dfbad9a92bde905cb5f795d89ce541273c9a48..4717d38f19b40c6b1064139a7cc9c332d6c44d24 100644 (file)
@@ -37,6 +37,7 @@ except ImportError:
 GMSH = "GMSH"
 GMSH_3D       = "GMSH_3D"
 GMSH_2D       = "GMSH_2D"
+GMSH_3D_Remote = "GMSH_3D_Remote"
 
 ## Base of all GMSH algorithms.
 #
@@ -60,6 +61,8 @@ class GMSH_Algorithm(Mesh_Algorithm):
             hypType = "GMSH_Parameters"
         elif self.algoType == GMSH_3D:
             hypType = "GMSH_Parameters_3D"
+        elif self.algoType == GMSH_3D_Remote:
+            hypType = "GMSH_Parameters_3D"
 
         if self.params and self.params.GetName() != hypType:
             self.mesh.RemoveHypothesis( self.params, self.geom )
@@ -79,9 +82,18 @@ class GMSH_2D_Algorithm(GMSH_Algorithm):
 
 class GMSH_3D_Algorithm(GMSH_Algorithm):
     
-     meshMethod = "Tetrahedron"
-     algoType   = GMSH_3D
+    meshMethod = "Tetrahedron"
+    algoType   = GMSH_3D
+
+    ## Private constructor.
+    def __init__(self, mesh, geom=0):
+        GMSH_Algorithm.__init__(self, mesh, geom)
 
-     ## Private constructor.
-     def __init__(self, mesh, geom=0):
-         GMSH_Algorithm.__init__(self, mesh, geom)
+
+class GMSH_3D_Remote_Algorithm(GMSH_Algorithm):
+    meshMethod = "Tetrahedron"
+    algoType   = GMSH_3D_Remote
+
+    ## Private constructor.
+    def __init__(self, mesh, geom=0):
+        GMSH_Algorithm.__init__(self, mesh, geom)
\ No newline at end of file