IPAL54382: TC8.5.0: SMESH: Regression in mesh visualization (body fitting)

This commit is contained in:
eap 2018-04-19 18:33:40 +03:00
parent bfd1d67c06
commit 88a6b8d690
3 changed files with 4 additions and 3 deletions

View File

@ -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();

View File

@ -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
}
}
}

View File

@ -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();