From: eap Date: Fri, 19 Feb 2010 08:43:22 +0000 (+0000) Subject: fix pb with GetName() in case of meshing imported 2D skin X-Git-Tag: V5_1_4a1~72 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=da57c650709f16f8f621907f6d0192d5f3144b30;p=modules%2Fsmesh.git fix pb with GetName() in case of meshing imported 2D skin --- diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index 77e8459ab..c4f773d6c 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -1314,7 +1314,7 @@ class Mesh: hyp_name = GetName( hyp ) geom_name = "" if geom: - hyp_name = GetName( geom ) + geom_name = GetName( geom ) TreatHypoStatus( status, hyp_name, geom_name, isAlgo ) return status @@ -3729,6 +3729,7 @@ class Mesh_Algorithm: raise RuntimeError, "Attemp to create " + algo + " algoritm on None shape" self.mesh = mesh piece = mesh.geom + name = "" if not geom: self.geom = piece else: @@ -3744,7 +3745,7 @@ class Mesh_Algorithm: self.algo = 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): print "CompareHyp is not implemented for ", self.__class__.__name__, ":", hyp.GetName()