mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 15:40:33 +05:00
Call a not published shape to mesh by name of the mesh if provided
This commit is contained in:
parent
98ad123d21
commit
db07298a81
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user