do not call mesh.Register() as this prevents mesh servant deletion at closing study
## Destructor. Clean-up resources
def __del__(self):
if self.mesh:
- self.mesh.UnRegister()
+ #self.mesh.UnRegister()
pass
pass
# @param theMesh a SMESH_Mesh object
# @ingroup l2_construct
def SetMesh(self, theMesh):
- if self.mesh: self.mesh.UnRegister()
+ # do not call Register() as this prevents mesh servant deletion at closing study
+ #if self.mesh: self.mesh.UnRegister()
self.mesh = theMesh
if self.mesh:
- self.mesh.Register()
+ #self.mesh.Register()
self.geom = self.mesh.GetShapeToMesh()
pass