Salome HOME
20140612_1537 clone to HYBRIDPLUGIN Modify files contents [('GHS3DPLUGIN', 'HYBRIDPLU...
[plugins/hybridplugin.git] / src / HYBRIDPlugin / HYBRIDPluginBuilder.py
index ec39a467247fdd6e89a147eb93b5761997ae9e8c..4c4b9b7d8c94057a411e21865148a621a55eceaa 100644 (file)
 #
 
 ##
-# @package GHS3DPluginBuilder
-# Python API for the GHS3D meshing plug-in module.
+# @package HYBRIDPluginBuilder
+# Python API for the HYBRID meshing plug-in module.
 
 from salome.smesh.smesh_algorithm import Mesh_Algorithm
 from salome.smesh.smeshBuilder import AssureGeomPublished
 
-# import GHS3DPlugin module if possible
-noGHS3DPlugin = 0
+# import HYBRIDPlugin module if possible
+noHYBRIDPlugin = 0
 try:
-    import GHS3DPlugin
+    import HYBRIDPlugin
 except ImportError:
-    noGHS3DPlugin = 1
+    noHYBRIDPlugin = 1
     pass
 
-# Optimization level of GHS3D
+# Optimization level of HYBRID
 # V3.1
 None_Optimization, Light_Optimization, Medium_Optimization, Strong_Optimization = 0,1,2,3
 # V4.1 (partialy redefines V3.1). Issue 0020574
@@ -42,20 +42,20 @@ None_Optimization, Light_Optimization, Standard_Optimization, StandardPlus_Optim
 # Mesh algo type identifiers
 #----------------------------
 
-## Algorithm type: GHS3D tetrahedron 3D algorithm, see GHS3D_Algorithm
-GHS3D = "GHS3D_3D"
+## Algorithm type: HYBRID tetrahedron 3D algorithm, see HYBRID_Algorithm
+HYBRID = "HYBRID_3D"
 
-## Tetrahedron GHS3D 3D algorithm
+## Tetrahedron HYBRID 3D algorithm
 #  
-#  It can be created by calling smeshBuilder.Mesh.Tetrahedron( smeshBuilder.GHS3D, geom=0 )
-class GHS3D_Algorithm(Mesh_Algorithm):
+#  It can be created by calling smeshBuilder.Mesh.Tetrahedron( smeshBuilder.HYBRID, geom=0 )
+class HYBRID_Algorithm(Mesh_Algorithm):
 
     ## name of the dynamic method in smeshBuilder.Mesh class
     #  @internal
     meshMethod = "Tetrahedron"
     ## type of algorithm used with helper function in smeshBuilder.Mesh class
     #  @internal
-    algoType   = GHS3D
+    algoType   = HYBRID
     ## doc string of the method in smeshBuilder.Mesh class
     #  @internal
     docHelper  = "Creates tetrahedron 3D algorithm for volumes"
@@ -66,8 +66,8 @@ class GHS3D_Algorithm(Mesh_Algorithm):
     #              if it is @c 0 (default), the algorithm is assigned to the main shape
     def __init__(self, mesh, geom=0):
         Mesh_Algorithm.__init__(self)
-        if noGHS3DPlugin: print "Warning: GHS3DPlugin module unavailable"
-        self.Create(mesh, geom, self.algoType, "libGHS3DEngine.so")
+        if noHYBRIDPlugin: print "Warning: HYBRIDPlugin module unavailable"
+        self.Create(mesh, geom, self.algoType, "libHYBRIDEngine.so")
         self.params = None
         pass
 
@@ -75,8 +75,8 @@ class GHS3D_Algorithm(Mesh_Algorithm):
     #  @return hypothesis object
     def Parameters(self):
         if not self.params:
-            self.params = self.Hypothesis("GHS3D_Parameters", [],
-                                          "libGHS3DEngine.so", UseExisting=0)
+            self.params = self.Hypothesis("HYBRID_Parameters", [],
+                                          "libHYBRIDEngine.so", UseExisting=0)
             pass
         return self.params
 
@@ -262,4 +262,4 @@ class GHS3D_Algorithm(Mesh_Algorithm):
         self.Parameters().SetTextOption(option)
         pass
     
-    pass # end of GHS3D_Algorithm class
+    pass # end of HYBRID_Algorithm class