Salome HOME
23586: [EDF] HYDRO: Copy mesh to new geometry
[plugins/netgenplugin.git] / src / NETGENPlugin / NETGENPluginBuilder.py
index 7334ae33351c9a3f94d5ed4cf8aec96bd3bed505..3c851e6f8f82555dd0918d2384a08234f2016741 100644 (file)
@@ -105,7 +105,7 @@ class NETGEN_Algorithm(Mesh_Algorithm):
     #              if it is @c 0 (default), the algorithm is assigned to the main shape
     def __init__(self, mesh, geom=0):
         Mesh_Algorithm.__init__(self)
-        if noNETGENPlugin: print "Warning: NETGENPlugin module unavailable"
+        if noNETGENPlugin: print("Warning: NETGENPlugin module unavailable")
         if not mesh.GetMesh().HasShapeToMesh() and \
            self.meshMethod == "Triangle": # create a 2D remesher
             self.Create(mesh, geom, "NETGEN_Remesher_2D", LIBRARY)
@@ -182,6 +182,14 @@ class NETGEN_Algorithm(Mesh_Algorithm):
         self.Parameters().SetMeshSizeFile(file)
         pass
 
+    ## Set size of elements on a shape
+    #  @param shape - geometry
+    #  @param size - element size
+    def SetLocalSizeOnShape(self, shape, size ):
+        self.Parameters().SetLocalSizeOnShape(shape, size)
+        pass
+        
+
     pass # end of NETGEN_Algorithm class