From: eap Date: Thu, 19 Apr 2018 15:33:40 +0000 (+0300) Subject: IPAL54382: TC8.5.0: SMESH: Regression in mesh visualization (body fitting) X-Git-Tag: V8_5_0rc1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=88a6b8d690a5410a9097c2f924d4a63be6db5e77;ds=sidebyside IPAL54382: TC8.5.0: SMESH: Regression in mesh visualization (body fitting) --- diff --git a/src/OBJECT/SMESH_Object.cxx b/src/OBJECT/SMESH_Object.cxx index 3f64bf4ab..1599efe5e 100644 --- a/src/OBJECT/SMESH_Object.cxx +++ b/src/OBJECT/SMESH_Object.cxx @@ -518,7 +518,8 @@ bool SMESH_VisualObjDef::GetEdgeNodes( const int theElemId, vtkUnstructuredGrid* SMESH_VisualObjDef::GetUnstructuredGrid() { - if ( !myLocalGrid && !GetMesh()->IsCompacted() ) + if ( !myLocalGrid && ( !GetMesh()->IsCompacted() || // !IsCompacted() is needed ??? + GetMesh()->GetGrid()->GetMTime() > myGrid->GetMTime() )) { NulData(); // detach from the SMDS grid to allow immediate memory de-allocation in CompactMesh() GetMesh()->CompactMesh(); diff --git a/src/SMESHDS/SMESHDS_Mesh.cxx b/src/SMESHDS/SMESHDS_Mesh.cxx index e973495bf..7a8714424 100644 --- a/src/SMESHDS/SMESHDS_Mesh.cxx +++ b/src/SMESHDS/SMESHDS_Mesh.cxx @@ -1047,7 +1047,7 @@ void SMESHDS_Mesh::ClearMesh() } else { - (*group)->Extent(); // to free cashed elements in GroupOnFilter's + (*group)->Extent(); // to free cached elements in GroupOnFilter's } } } diff --git a/src/SMESH_I/SMESH_Mesh_i.cxx b/src/SMESH_I/SMESH_Mesh_i.cxx index f97541aef..2b1192291 100644 --- a/src/SMESH_I/SMESH_Mesh_i.cxx +++ b/src/SMESH_I/SMESH_Mesh_i.cxx @@ -160,7 +160,7 @@ SMESH_Mesh_i::~SMESH_Mesh_i() } _mapHypo.clear(); - // clear cashed shapes if no more meshes remain; (the cash is blame, + // clear cached shapes if no more meshes remain; (the cache is blame, // together with publishing, of spent time increasing in issue 22874) if ( _impl->NbMeshes() == 1 ) _gen_i->GetShapeReader()->ClearClientBuffer();