From 1c9e778a7c0d08bf2715957c9231e1be5bf388c7 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 27 Feb 2012 09:15:43 +0000 Subject: [PATCH] 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh + ## Loads mesh from the study after opening the study + def Load(self): --- src/SMESH_SWIG/smeshDC.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index ebc441fca..f53fa33e4 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -1255,6 +1255,10 @@ class Mesh: def SetShape(self, geom): self.mesh = self.smeshpyD.CreateMesh(geom) + ## Loads mesh from the study after opening the study + def Load(self): + self.mesh.Load() + ## Returns true if the hypotheses are defined well # @param theSubObject a sub-shape of a mesh shape # @return True or False @@ -6182,7 +6186,7 @@ class Mesh_Projection1D(Mesh_Algorithm): UseExisting=0) #UseExisting=UseExisting, CompareMethod=self.CompareSourceEdge) hyp.SetSourceEdge( edge ) - if not mesh is None and isinstance(mesh, Mesh): + if isinstance(mesh, Mesh): mesh = mesh.GetMesh() hyp.SetSourceMesh( mesh ) hyp.SetVertexAssociation( srcV, tgtV ) @@ -6278,7 +6282,7 @@ class Mesh_Projection3D(Mesh_Algorithm): UseExisting=0) #UseExisting=UseExisting, CompareMethod=self.CompareSourceShape3D) hyp.SetSource3DShape( solid ) - if not mesh is None and isinstance(mesh, Mesh): + if isinstance(mesh, Mesh): mesh = mesh.GetMesh() hyp.SetSourceMesh( mesh ) if srcV1 and srcV2 and tgtV1 and tgtV2: