Salome HOME
Replace Ok button with Apply and Close.
[modules/smesh.git] / src / SMESH_SWIG / smeshDC.py
index 462eee2550368042ff03a052b6e4616bf9d7d21e..75e19083f3b815bdd4d1a6b825ccbb4bc9f9b367 100644 (file)
@@ -2860,7 +2860,7 @@ class Mesh_Triangle(Mesh_Algorithm):
         elif algoType == BLSURF:
             import BLSURFPlugin
             self.Create(mesh, geom, "BLSURF", "libBLSURFEngine.so")
-            self.SetPhysicalMesh()
+            #self.SetPhysicalMesh() - PAL19680
         elif algoType == NETGEN:
             if noNETGENPlugin:
                 print "Warning: NETGENPlugin module unavailable"
@@ -2921,6 +2921,20 @@ class Mesh_Triangle(Mesh_Algorithm):
             self.Parameters()
         self.params.SetPhySize(theVal)
 
+    ## Sets lower boundary of mesh element size (PhySize)
+    #  Parameter of BLSURF algo
+    def SetPhyMin(self, theVal=-1):
+        if self.params == 0:
+            self.Parameters()
+        self.params.SetPhyMin(theVal)
+
+    ## Sets upper boundary of mesh element size (PhySize)
+    #  Parameter of BLSURF algo
+    def SetPhyMax(self, theVal=-1):
+        if self.params == 0:
+            self.Parameters()
+        self.params.SetPhyMax(theVal)
+
     ## Sets a way to define maximum angular deflection of mesh from CAD model
     #  @param theGeometricMesh is: DefaultGeom or Custom
     #  Parameter of BLSURF algo
@@ -2930,7 +2944,7 @@ class Mesh_Triangle(Mesh_Algorithm):
         if self.params.GetPhysicalMesh() == 0: theGeometricMesh = 1
         self.params.SetGeometricMesh(theGeometricMesh)
 
-    ## Sets angular deflection (in degrees) of mesh from CAD model
+    ## Sets angular deflection (in degrees) of a mesh face from CAD surface
     #  Parameter of BLSURF algo
     def SetAngleMeshS(self, theVal=_angleMeshS):
         if self.params == 0:
@@ -2938,6 +2952,28 @@ class Mesh_Triangle(Mesh_Algorithm):
         if self.params.GetGeometricMesh() == 0: theVal = self._angleMeshS
         self.params.SetAngleMeshS(theVal)
 
+    ## Sets angular deflection (in degrees) of a mesh edge from CAD curve
+    #  Parameter of BLSURF algo
+    def SetAngleMeshC(self, theVal=_angleMeshS):
+        if self.params == 0:
+            self.Parameters()
+        if self.params.GetGeometricMesh() == 0: theVal = self._angleMeshS
+        self.params.SetAngleMeshC(theVal)
+
+    ## Sets lower boundary of mesh element size computed to respect angular deflection
+    #  Parameter of BLSURF algo
+    def SetGeoMin(self, theVal=-1):
+        if self.params == 0:
+            self.Parameters()
+        self.params.SetGeoMin(theVal)
+
+    ## Sets upper boundary of mesh element size computed to respect angular deflection
+    #  Parameter of BLSURF algo
+    def SetGeoMax(self, theVal=-1):
+        if self.params == 0:
+            self.Parameters()
+        self.params.SetGeoMax(theVal)
+
     ## Sets maximal allowed ratio between the lengths of two adjacent edges
     #  Parameter of BLSURF algo
     def SetGradation(self, theVal=_gradation):
@@ -2963,6 +2999,20 @@ class Mesh_Triangle(Mesh_Algorithm):
             self.Parameters()
         self.params.SetDecimesh(toIgnoreEdges)
 
+    ## Sets verbosity level in the range 0 to 100.
+    #  Parameter of BLSURF algo
+    def SetVerbosity(self, level):
+        if self.params == 0:
+            self.Parameters()
+        self.params.SetVerbosity(level)
+
+    ## Sets advanced option value
+    #  Parameter of BLSURF algo
+    def SetOptionValue(self, optionName, value):
+        if self.params == 0:
+            self.Parameters()
+        self.params.SetOptionValue(optionName,level)
+
     ## Sets QuadAllowed flag
     #
     #  Only for algoType == NETGEN || NETGEN_2D || BLSURF
@@ -3244,6 +3294,38 @@ class Mesh_Tetrahedron(Mesh_Algorithm):
         if self.params == 0: self.Parameters()
         self.params.SetKeepFiles(toKeep)
 
+    ## To set verbose level [0-10]
+    #  0 - no standard output,
+    #  2 - prints the data, quality statistics of the skin and final meshes and
+    #     indicates when the final mesh is being saved. In addition the software
+    #     gives indication regarding the CPU time.
+    # 10 - same as 2 plus the main steps in the computation, quality statistics
+    #     histogram of the skin mesh, quality statistics histogram together with
+    #     the characteristics of the final mesh.
+    #  Advanced parameter of GHS3D
+    def SetVerboseLevel(self, level):
+        if self.params == 0: self.Parameters()
+        self.params.SetVerboseLevel(level)
+
+    ## To create new nodes
+    #  Advanced parameter of GHS3D
+    def SetToCreateNewNodes(self, toCreate):
+        if self.params == 0: self.Parameters()
+        self.params.SetToCreateNewNodes(toCreate)
+
+    ## To use boundary recovery version which tries to create mesh on a very poor
+    #  quality surface mesh
+    #  Advanced parameter of GHS3D
+    def SetToUseBoundaryRecoveryVersion(self, toUse):
+        if self.params == 0: self.Parameters()
+        self.params.SetToUseBoundaryRecoveryVersion(toUse)
+
+    ## To set hidden/undocumented/advanced options
+    #  Advanced parameter of GHS3D
+    def SetTextOption(self, option):
+        if self.params == 0: self.Parameters()
+        self.params.SetTextOption(option)
+
 # Public class: Mesh_Hexahedron
 # ------------------------------