Salome HOME
IPAL54382: TC8.5.0: SMESH: Regression in mesh visualization (body fitting)
authoreap <eap@opencascade.com>
Thu, 19 Apr 2018 15:33:40 +0000 (18:33 +0300)
committereap <eap@opencascade.com>
Thu, 19 Apr 2018 15:33:40 +0000 (18:33 +0300)
src/OBJECT/SMESH_Object.cxx
src/SMESHDS/SMESHDS_Mesh.cxx
src/SMESH_I/SMESH_Mesh_i.cxx

index 3f64bf4abc6d3ace5af52b849b606ef11f5686c2..1599efe5e602e4a12ca67ff0926f837cf8c71b20 100644 (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();
index e973495bf8a20c10c3b2c3bdeabb78754883ea92..7a8714424974831a8fe72e7c73b9aa4a7041c9aa 100644 (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
     }
   }
 }
index f97541aef6f34a2bf7f3edbfb7b47ad2a232a3b9..2b11922915c2f77addce88e7b2b928751be0ccb2 100644 (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();