mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-31 11:50:34 +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,6 +975,9 @@ class Mesh:
|
|||||||
if studyID != geompyD.myStudyId:
|
if studyID != geompyD.myStudyId:
|
||||||
geompyD.init_geom( smeshpyD.GetCurrentStudy())
|
geompyD.init_geom( smeshpyD.GetCurrentStudy())
|
||||||
pass
|
pass
|
||||||
|
if name:
|
||||||
|
geo_name = name
|
||||||
|
else:
|
||||||
geo_name = "%s_%s_for_meshing"%(self.geom.GetShapeType(), id(self.geom)%100)
|
geo_name = "%s_%s_for_meshing"%(self.geom.GetShapeType(), id(self.geom)%100)
|
||||||
geompyD.addToStudy( self.geom, geo_name )
|
geompyD.addToStudy( self.geom, geo_name )
|
||||||
self.mesh = self.smeshpyD.CreateMesh(self.geom)
|
self.mesh = self.smeshpyD.CreateMesh(self.geom)
|
||||||
|
Loading…
Reference in New Issue
Block a user