From: eap Date: Fri, 7 Sep 2012 14:12:35 +0000 (+0000) Subject: Call a not published shape to mesh by name of the mesh if provided X-Git-Tag: V6_6_0a1~128 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=db07298a81884c7e309e9611c570f4cc621a9332;p=modules%2Fsmesh.git Call a not published shape to mesh by name of the mesh if provided --- diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index 381d765f8..05e122a27 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -975,7 +975,10 @@ class Mesh: if studyID != geompyD.myStudyId: geompyD.init_geom( smeshpyD.GetCurrentStudy()) pass - geo_name = "%s_%s_for_meshing"%(self.geom.GetShapeType(), id(self.geom)%100) + if name: + geo_name = name + else: + geo_name = "%s_%s_for_meshing"%(self.geom.GetShapeType(), id(self.geom)%100) geompyD.addToStudy( self.geom, geo_name ) self.mesh = self.smeshpyD.CreateMesh(self.geom)