Salome HOME
Merge from BR_size_maps
[plugins/hexoticplugin.git] / src / HexoticPlugin / HexoticPLUGINBuilder.py
index b23978cbdb22e07c79d776df73a166a03459aa14..f2127b1e26180fdeabb1ec05604024d878db4652 100644 (file)
@@ -86,6 +86,20 @@ class Hexotic_Algorithm(Mesh_Algorithm):
         self.Parameters().SetMinSize(min)
         self.Parameters().SetMaxSize(max)
         return self.Parameters()
+         
+    ## Sets a size map
+    #  @param theObject geometrical object to assign local size to
+    #  @param theSize local size on the given object
+    #  @return hypothesis object
+    def SetSizeMap(self, theObject, theSize):
+        AssureGeomPublished( self.mesh, theObject )
+        self.Parameters().SetSizeMap(theObject, theSize)
+        return self.Parameters()
+      
+    ## Clears all size maps : this is meant to be used only by the dump
+    def ClearSizeMaps(self):
+        self.Parameters().ClearSizeMaps()
+        return self.Parameters()
 
     ## (OBSOLETE) Defines "MinMaxQuad" hypothesis to give three hexotic parameters
     #  @param min minimal level of recursive partitioning on the initial octree cube