mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-25 00:40:33 +05:00
update __init__ function of Mesh_Triangle class
This commit is contained in:
parent
79137f3126
commit
eeccdfb1ef
@ -576,16 +576,17 @@ class Mesh_Triangle(Mesh_Algorithm):
|
|||||||
|
|
||||||
## Private constructor.
|
## Private constructor.
|
||||||
def __init__(self, mesh, algoType, geom=0):
|
def __init__(self, mesh, algoType, geom=0):
|
||||||
|
self.algoType = algoType
|
||||||
if algoType == MEFISTO:
|
if algoType == MEFISTO:
|
||||||
self.Create(mesh, geom, "MEFISTO_2D")
|
self.Create(mesh, geom, "MEFISTO_2D")
|
||||||
elif algoType == BLSURF:
|
elif algoType == BLSURF:
|
||||||
import BLSURFPlugin
|
import BLSURFPlugin
|
||||||
self.Create(mesh, geom, "BLSURF", "libBLSURFEngine.so")
|
self.Create(mesh, geom, "BLSURF", "libBLSURFEngine.so")
|
||||||
|
self.SetPhysicalMesh()
|
||||||
elif algoType == NETGEN:
|
elif algoType == NETGEN:
|
||||||
if noNETGENPlugin:
|
if noNETGENPlugin:
|
||||||
print "Warning: NETGENPlugin module has not been imported."
|
print "Warning: NETGENPlugin module has not been imported."
|
||||||
self.Create(mesh, geom, "NETGEN_2D", "libNETGENEngine.so")
|
self.Create(mesh, geom, "NETGEN_2D", "libNETGENEngine.so")
|
||||||
self.algoType = algoType
|
|
||||||
|
|
||||||
## Define "MaxElementArea" hypothesis to give the maximun area of each triangles
|
## Define "MaxElementArea" hypothesis to give the maximun area of each triangles
|
||||||
# @param area for the maximum area of each triangles
|
# @param area for the maximum area of each triangles
|
||||||
|
Loading…
Reference in New Issue
Block a user