From: eap Date: Mon, 5 May 2008 06:06:06 +0000 (+0000) Subject: add more options to BLSURF X-Git-Tag: V4_1_2~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2c990d2d243dc526c7dbbb8c113563ee013cdff8;p=modules%2Fsmesh.git add more options to BLSURF --- diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index d5f7b3d5f..cc870964a 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -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