mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-02 21:00:34 +05:00
Bug 16777: Fix merging pb.
This commit is contained in:
parent
8407274e7b
commit
b0c06e93e6
@ -411,13 +411,16 @@ omniORB.registerObjref(SMESH._objref_SMESH_Gen._NP_RepositoryId, smeshDC)
|
|||||||
class Mesh_Algorithm:
|
class Mesh_Algorithm:
|
||||||
# @class Mesh_Algorithm
|
# @class Mesh_Algorithm
|
||||||
# @brief Class Mesh_Algorithm
|
# @brief Class Mesh_Algorithm
|
||||||
def __init__(self,smesh):
|
|
||||||
self.smesh=smesh
|
hypos = {}
|
||||||
self.mesh = 0
|
|
||||||
self.geom = 0
|
#def __init__(self,smesh):
|
||||||
self.subm = 0
|
# self.smesh=smesh
|
||||||
self.algo = 0
|
def __init__(self):
|
||||||
hypos = {}
|
self.mesh = None
|
||||||
|
self.geom = None
|
||||||
|
self.subm = None
|
||||||
|
self.algo = None
|
||||||
|
|
||||||
def FindHypothesis(self,hypname, args):
|
def FindHypothesis(self,hypname, args):
|
||||||
key = "%s %s %s" % (self.__class__.__name__, hypname, args)
|
key = "%s %s %s" % (self.__class__.__name__, hypname, args)
|
||||||
@ -457,7 +460,7 @@ class Mesh_Algorithm:
|
|||||||
def Create(self, mesh, geom, hypo, so="libStdMeshersEngine.so"):
|
def Create(self, mesh, geom, hypo, so="libStdMeshersEngine.so"):
|
||||||
if geom is None:
|
if geom is None:
|
||||||
raise RuntimeError, "Attemp to create " + hypo + " algoritm on None shape"
|
raise RuntimeError, "Attemp to create " + hypo + " algoritm on None shape"
|
||||||
algo = self.mesh.smeshpyD.CreateHypothesis(hypo, so)
|
algo = mesh.smeshpyD.CreateHypothesis(hypo, so)
|
||||||
self.Assign(algo, mesh, geom)
|
self.Assign(algo, mesh, geom)
|
||||||
return self.algo
|
return self.algo
|
||||||
|
|
||||||
@ -521,6 +524,8 @@ class Mesh_Segment(Mesh_Algorithm):
|
|||||||
|
|
||||||
## Private constructor.
|
## Private constructor.
|
||||||
def __init__(self, mesh, geom=0):
|
def __init__(self, mesh, geom=0):
|
||||||
|
Mesh_Algorithm.__init__(self)
|
||||||
|
|
||||||
if not Mesh_Segment.algo:
|
if not Mesh_Segment.algo:
|
||||||
Mesh_Segment.algo = self.Create(mesh, geom, "Regular_1D")
|
Mesh_Segment.algo = self.Create(mesh, geom, "Regular_1D")
|
||||||
else:
|
else:
|
||||||
@ -694,6 +699,8 @@ class Mesh_Triangle(Mesh_Algorithm):
|
|||||||
|
|
||||||
## Private constructor.
|
## Private constructor.
|
||||||
def __init__(self, mesh, algoType, geom=0):
|
def __init__(self, mesh, algoType, geom=0):
|
||||||
|
Mesh_Algorithm.__init__(self)
|
||||||
|
|
||||||
if algoType == MEFISTO:
|
if algoType == MEFISTO:
|
||||||
if not Mesh_Triangle.algoMEF:
|
if not Mesh_Triangle.algoMEF:
|
||||||
Mesh_Triangle.algoMEF = self.Create(mesh, geom, "MEFISTO_2D")
|
Mesh_Triangle.algoMEF = self.Create(mesh, geom, "MEFISTO_2D")
|
||||||
@ -854,6 +861,8 @@ class Mesh_Quadrangle(Mesh_Algorithm):
|
|||||||
|
|
||||||
## Private constructor.
|
## Private constructor.
|
||||||
def __init__(self, mesh, geom=0):
|
def __init__(self, mesh, geom=0):
|
||||||
|
Mesh_Algorithm.__init__(self)
|
||||||
|
|
||||||
if not Mesh_Quadrangle.algo:
|
if not Mesh_Quadrangle.algo:
|
||||||
Mesh_Quadrangle.algo = self.Create(mesh, geom, "Quadrangle_2D")
|
Mesh_Quadrangle.algo = self.Create(mesh, geom, "Quadrangle_2D")
|
||||||
else:
|
else:
|
||||||
@ -884,6 +893,8 @@ class Mesh_Tetrahedron(Mesh_Algorithm):
|
|||||||
|
|
||||||
## Private constructor.
|
## Private constructor.
|
||||||
def __init__(self, mesh, algoType, geom=0):
|
def __init__(self, mesh, algoType, geom=0):
|
||||||
|
Mesh_Algorithm.__init__(self)
|
||||||
|
|
||||||
if algoType == NETGEN:
|
if algoType == NETGEN:
|
||||||
if not Mesh_Tetrahedron.algoNET:
|
if not Mesh_Tetrahedron.algoNET:
|
||||||
Mesh_Tetrahedron.algoNET = self.Create(mesh, geom, "NETGEN_3D", "libNETGENEngine.so")
|
Mesh_Tetrahedron.algoNET = self.Create(mesh, geom, "NETGEN_3D", "libNETGENEngine.so")
|
||||||
@ -988,6 +999,8 @@ class Mesh_Hexahedron(Mesh_Algorithm):
|
|||||||
|
|
||||||
## Private constructor.
|
## Private constructor.
|
||||||
def __init__(self, mesh, geom=0):
|
def __init__(self, mesh, geom=0):
|
||||||
|
Mesh_Algorithm.__init__(self)
|
||||||
|
|
||||||
if not Mesh_Hexahedron.algo:
|
if not Mesh_Hexahedron.algo:
|
||||||
Mesh_Hexahedron.algo = self.Create(mesh, geom, "Hexa_3D")
|
Mesh_Hexahedron.algo = self.Create(mesh, geom, "Hexa_3D")
|
||||||
else:
|
else:
|
||||||
@ -1013,6 +1026,8 @@ class Mesh_Netgen(Mesh_Algorithm):
|
|||||||
|
|
||||||
## Private constructor.
|
## Private constructor.
|
||||||
def __init__(self, mesh, is3D, geom=0):
|
def __init__(self, mesh, is3D, geom=0):
|
||||||
|
Mesh_Algorithm.__init__(self)
|
||||||
|
|
||||||
if noNETGENPlugin:
|
if noNETGENPlugin:
|
||||||
print "Warning: NETGENPlugin module has not been imported."
|
print "Warning: NETGENPlugin module has not been imported."
|
||||||
|
|
||||||
@ -1055,6 +1070,8 @@ class Mesh_Projection1D(Mesh_Algorithm):
|
|||||||
|
|
||||||
## Private constructor.
|
## Private constructor.
|
||||||
def __init__(self, mesh, geom=0):
|
def __init__(self, mesh, geom=0):
|
||||||
|
Mesh_Algorithm.__init__(self)
|
||||||
|
|
||||||
if not Mesh_Projection1D.algo:
|
if not Mesh_Projection1D.algo:
|
||||||
Mesh_Projection1D.algo = self.Create(mesh, geom, "Projection_1D")
|
Mesh_Projection1D.algo = self.Create(mesh, geom, "Projection_1D")
|
||||||
else:
|
else:
|
||||||
@ -1093,6 +1110,8 @@ class Mesh_Projection2D(Mesh_Algorithm):
|
|||||||
|
|
||||||
## Private constructor.
|
## Private constructor.
|
||||||
def __init__(self, mesh, geom=0):
|
def __init__(self, mesh, geom=0):
|
||||||
|
Mesh_Algorithm.__init__(self)
|
||||||
|
|
||||||
if not Mesh_Projection2D.algo:
|
if not Mesh_Projection2D.algo:
|
||||||
Mesh_Projection2D.algo = self.Create(mesh, geom, "Projection_2D")
|
Mesh_Projection2D.algo = self.Create(mesh, geom, "Projection_2D")
|
||||||
else:
|
else:
|
||||||
@ -1137,6 +1156,8 @@ class Mesh_Projection3D(Mesh_Algorithm):
|
|||||||
|
|
||||||
## Private constructor.
|
## Private constructor.
|
||||||
def __init__(self, mesh, geom=0):
|
def __init__(self, mesh, geom=0):
|
||||||
|
Mesh_Algorithm.__init__(self)
|
||||||
|
|
||||||
if not Mesh_Projection3D.algo:
|
if not Mesh_Projection3D.algo:
|
||||||
Mesh_Projection3D.algo = self.Create(mesh, geom, "Projection_3D")
|
Mesh_Projection3D.algo = self.Create(mesh, geom, "Projection_3D")
|
||||||
else:
|
else:
|
||||||
@ -1183,6 +1204,8 @@ class Mesh_Prism3D(Mesh_Algorithm):
|
|||||||
|
|
||||||
## Private constructor.
|
## Private constructor.
|
||||||
def __init__(self, mesh, geom=0):
|
def __init__(self, mesh, geom=0):
|
||||||
|
Mesh_Algorithm.__init__(self)
|
||||||
|
|
||||||
if not Mesh_Prism3D.algo:
|
if not Mesh_Prism3D.algo:
|
||||||
Mesh_Prism3D.algo = self.Create(mesh, geom, "Prism_3D")
|
Mesh_Prism3D.algo = self.Create(mesh, geom, "Prism_3D")
|
||||||
else:
|
else:
|
||||||
@ -1201,6 +1224,8 @@ class Mesh_RadialPrism3D(Mesh_Algorithm):
|
|||||||
|
|
||||||
## Private constructor.
|
## Private constructor.
|
||||||
def __init__(self, mesh, geom=0):
|
def __init__(self, mesh, geom=0):
|
||||||
|
Mesh_Algorithm.__init__(self)
|
||||||
|
|
||||||
if not Mesh_RadialPrism3D.algo:
|
if not Mesh_RadialPrism3D.algo:
|
||||||
Mesh_RadialPrism3D.algo = self.Create(mesh, geom, "RadialPrism_3D")
|
Mesh_RadialPrism3D.algo = self.Create(mesh, geom, "RadialPrism_3D")
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user