Salome HOME
add more options to BLSURF
authoreap <eap@opencascade.com>
Mon, 5 May 2008 06:06:06 +0000 (06:06 +0000)
committereap <eap@opencascade.com>
Mon, 5 May 2008 06:06:06 +0000 (06:06 +0000)
src/SMESH_SWIG/smeshDC.py

index d5f7b3d5feb63a6f1275b1cedc7c14a7c8f5f2ec..cc870964a6514d8872b3008bc2b249baab2123f2 100644 (file)
@@ -2930,7 +2930,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 +2938,14 @@ 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 maximal allowed ratio between the lengths of two adjacent edges
     #  Parameter of BLSURF algo
     def SetGradation(self, theVal=_gradation):
@@ -2963,6 +2971,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