From da57c650709f16f8f621907f6d0192d5f3144b30 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 19 Feb 2010 08:43:22 +0000 Subject: [PATCH] fix pb with GetName() in case of meshing imported 2D skin --- src/SMESH_SWIG/smeshDC.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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() -- 2.39.2