From: eap Date: Mon, 5 May 2008 10:23:44 +0000 (+0000) Subject: add more options to BLSURF X-Git-Tag: V4_1_2~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b8d390c6f97ef2de0ef2fbcef1bdd9821b5e06d0;p=modules%2Fsmesh.git add more options to BLSURF --- diff --git a/doc/salome/gui/SMESH/images/blsurf_parameters.png b/doc/salome/gui/SMESH/images/blsurf_parameters.png index 79a3a7870..22d038ac5 100644 Binary files a/doc/salome/gui/SMESH/images/blsurf_parameters.png and b/doc/salome/gui/SMESH/images/blsurf_parameters.png differ diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index cc870964a..75e19083f 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -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 @@ -2946,6 +2960,20 @@ class Mesh_Triangle(Mesh_Algorithm): 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):