Call a not published shape to mesh by name of the mesh if provided

This commit is contained in:
eap 2012-09-07 14:12:35 +00:00
parent 98ad123d21
commit db07298a81

View File

@ -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)