-# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
noNETGENPlugin = 1
pass
+LIBRARY = "libNETGENEngine.so"
+
#----------------------------
# Mesh algo type identifiers
#----------------------------
# 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"
- self.Create(mesh, geom, self.algoType, "libNETGENEngine.so")
+ if noNETGENPlugin: print("Warning: NETGENPlugin module unavailable")
+ self.Create(mesh, geom, self.algoType, LIBRARY)
self.params = None
pass
self.mesh.RemoveHypothesis( self.params, self.geom )
self.params = None
if not self.params:
- self.params = self.Hypothesis(hypType, [],"libNETGENEngine.so",UseExisting=0)
+ self.params = self.Hypothesis(hypType, [], LIBRARY, UseExisting=0)
return self.params
+ ## Defines a file specifying size of elements at points and lines
+ # @param file name of the file
+ def SetMeshSizeFile(self, file):
+ self.Parameters().SetMeshSizeFile(file)
+ pass
+
pass # end of NETGEN_Algorithm class
hyp = self.Hypothesis("LengthFromEdges", UseExisting=1, CompareMethod=self.CompareEqualHyp)
return hyp
- ## Sets @c SurfaceCurvature flag
- # @param toAllow new value of the @c SurfaceCurvature parameter (@c True by default)
- def SetSurfaceCurvature(self, toAllow=True):
- if self.Parameters(): self.params.SetSurfaceCurvature(toAllow)
+ ## Sets @c UseSurfaceCurvature flag
+ # @param toUse new value of the @c UseSurfaceCurvature parameter (@c True by default)
+ def SetUseSurfaceCurvature(self, toUse=True):
+ if self.Parameters(): self.params.SetUseSurfaceCurvature(toUse)
pass
## Sets @c QuadAllowed flag.