Salome HOME
Porting to MeshGems 2.10: minor change in Python API
authorvsr <vsr@opencascade.com>
Wed, 11 Mar 2020 09:25:48 +0000 (12:25 +0300)
committervsr <vsr@opencascade.com>
Wed, 11 Mar 2020 09:25:48 +0000 (12:25 +0300)
src/BLSURFPlugin/BLSURFPluginBuilder.py

index ce756a87a1321f68225f5dc9977bf565edaf4643..79047a9806c96e366d7d5627d3052a7be1d9b3af 100644 (file)
@@ -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