mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-31 10:09:53 +05:00
fix pb with GetName() in case of meshing imported 2D skin
This commit is contained in:
parent
7ca0689d93
commit
da57c65070
@ -1314,7 +1314,7 @@ class Mesh:
|
|||||||
hyp_name = GetName( hyp )
|
hyp_name = GetName( hyp )
|
||||||
geom_name = ""
|
geom_name = ""
|
||||||
if geom:
|
if geom:
|
||||||
hyp_name = GetName( geom )
|
geom_name = GetName( geom )
|
||||||
TreatHypoStatus( status, hyp_name, geom_name, isAlgo )
|
TreatHypoStatus( status, hyp_name, geom_name, isAlgo )
|
||||||
return status
|
return status
|
||||||
|
|
||||||
@ -3729,6 +3729,7 @@ class Mesh_Algorithm:
|
|||||||
raise RuntimeError, "Attemp to create " + algo + " algoritm on None shape"
|
raise RuntimeError, "Attemp to create " + algo + " algoritm on None shape"
|
||||||
self.mesh = mesh
|
self.mesh = mesh
|
||||||
piece = mesh.geom
|
piece = mesh.geom
|
||||||
|
name = ""
|
||||||
if not geom:
|
if not geom:
|
||||||
self.geom = piece
|
self.geom = piece
|
||||||
else:
|
else:
|
||||||
@ -3744,7 +3745,7 @@ class Mesh_Algorithm:
|
|||||||
|
|
||||||
self.algo = algo
|
self.algo = algo
|
||||||
status = mesh.mesh.AddHypothesis(self.geom, self.algo)
|
status = mesh.mesh.AddHypothesis(self.geom, self.algo)
|
||||||
TreatHypoStatus( status, algo.GetName(), GetName(self.geom), True )
|
TreatHypoStatus( status, algo.GetName(), name, True )
|
||||||
|
|
||||||
def CompareHyp (self, hyp, args):
|
def CompareHyp (self, hyp, args):
|
||||||
print "CompareHyp is not implemented for ", self.__class__.__name__, ":", hyp.GetName()
|
print "CompareHyp is not implemented for ", self.__class__.__name__, ":", hyp.GetName()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user