]> SALOME platform Git repositories - plugins/hexoticplugin.git/blobdiff - src/HexoticPlugin/HexoticPLUGINBuilder.py
Salome HOME
IMP: HexoticPLUGIN/Size Maps: Added some warnings to avoid 0 value of the local size...
[plugins/hexoticplugin.git] / src / HexoticPlugin / HexoticPLUGINBuilder.py
index f0c1b777610ed3a9e647492cbea70865f0369ea1..97b1d409bc24b18faba4d026c634ce3e912ba7da 100644 (file)
@@ -93,13 +93,15 @@ class Hexotic_Algorithm(Mesh_Algorithm):
     #  @return hypothesis object
     def SetSizeMap(self, theObject, theSize):
         AssureGeomPublished( self.mesh, theObject )
+        if theSize <= 0:
+          raise ValueError, "The size must be > 0"
         self.Parameters().SetSizeMap(theObject, theSize)
         return self.Parameters()
       
     ## Unsets a size map : this is meant to be used only by the dump
     #  @param theObject geometrical object to unassign local size
     #  @return hypothesis object
-    def UnsetSizeMap(self, theObject, theSize):
+    def UnsetSizeMap(self, theObject):
         AssureGeomPublished( self.mesh, theObject )
         self.Parameters().UnsetSizeMap(theObject)
         return self.Parameters()