mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +05:00
0021122: EDF 1735 SMESH: Bug when saving in .hdf
In Mesh_Algorithm.Assign(), add to study the not pubished sub-shape
This commit is contained in:
parent
07112cd8f1
commit
692ae6c6e3
@ -4354,12 +4354,20 @@ class Mesh_Algorithm:
|
|||||||
name = GetName(geom)
|
name = GetName(geom)
|
||||||
pass
|
pass
|
||||||
except:
|
except:
|
||||||
|
pass
|
||||||
|
if not name and geom.GetShapeType() != geompyDC.GEOM.COMPOUND:
|
||||||
|
# for all groups SubShapeName() returns "Compound_-1"
|
||||||
name = mesh.geompyD.SubShapeName(geom, piece)
|
name = mesh.geompyD.SubShapeName(geom, piece)
|
||||||
if not name:
|
if not name:
|
||||||
name = "%s_%s"%(geom.GetShapeType(), id(geom%1000))
|
name = "%s_%s"%(geom.GetShapeType(), id(geom)%10000)
|
||||||
|
# publish geom of sub-mesh (issue 0021122)
|
||||||
|
if not self.geom.IsSame( self.mesh.geom ) and not self.geom.GetStudyEntry():
|
||||||
|
studyID = self.mesh.smeshpyD.GetCurrentStudy()._get_StudyId()
|
||||||
|
if studyID != self.mesh.geompyD.myStudyId:
|
||||||
|
self.mesh.geompyD.init_geom( self.mesh.smeshpyD.GetCurrentStudy())
|
||||||
|
self.mesh.geompyD.addToStudyInFather( self.mesh.geom, self.geom, name )
|
||||||
pass
|
pass
|
||||||
self.subm = mesh.mesh.GetSubMesh(geom, algo.GetName())
|
self.subm = mesh.mesh.GetSubMesh(geom, algo.GetName())
|
||||||
|
|
||||||
self.algo = algo
|
self.algo = algo
|
||||||
status = mesh.mesh.AddHypothesis(self.geom, self.algo)
|
status = mesh.mesh.AddHypothesis(self.geom, self.algo)
|
||||||
TreatHypoStatus( status, algo.GetName(), name, True )
|
TreatHypoStatus( status, algo.GetName(), name, True )
|
||||||
|
Loading…
Reference in New Issue
Block a user