# 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)
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