From db07298a81884c7e309e9611c570f4cc621a9332 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 7 Sep 2012 14:12:35 +0000 Subject: [PATCH] Call a not published shape to mesh by name of the mesh if provided --- src/SMESH_SWIG/smeshDC.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.39.2