From: vsr Date: Wed, 11 Mar 2020 09:25:48 +0000 (+0300) Subject: Porting to MeshGems 2.10: minor change in Python API X-Git-Tag: V9_5_0a2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=664938a8945db6a3f758c2b80af20965ec1bb91c;p=plugins%2Fblsurfplugin.git Porting to MeshGems 2.10: minor change in Python API --- diff --git a/src/BLSURFPlugin/BLSURFPluginBuilder.py b/src/BLSURFPlugin/BLSURFPluginBuilder.py index ce756a8..79047a9 100644 --- a/src/BLSURFPlugin/BLSURFPluginBuilder.py +++ b/src/BLSURFPlugin/BLSURFPluginBuilder.py @@ -254,6 +254,8 @@ class BLSURF_Algorithm(Mesh_Algorithm): # combination with the gradation option. # def SetEnforceCadEdgesSize( self, toEnforce ): + if not version_less(self.Parameters().GetMeshGemsVersion(), '2.10'): + print("Warning: method SetEnforceCadEdgesSize() is deprecated") self.Parameters().SetEnforceCadEdgesSize( toEnforce ) ## Set jacobian_rectification_respect_geometry parameter