]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
#19919 [CEA] Group of Edges reported as empty
authormpv <mpv@opencascade.com>
Fri, 4 Sep 2020 14:46:03 +0000 (17:46 +0300)
committermpv <mpv@opencascade.com>
Fri, 4 Sep 2020 14:46:03 +0000 (17:46 +0300)
Make mesh marked by ! sign if after breaking link the referenced shape becomes different from the shape used for meshing before.

src/SMESH_I/SMESH_Mesh_i.cxx

index 4c2ca27c376ae82080db24f1d997fa6444a7a8aa..97687ae79842fa0fb4ea98b578c01cf73b674be1 100644 (file)
@@ -2052,8 +2052,7 @@ void SMESH_Mesh_i::ReplaceShape(GEOM::GEOM_Object_ptr theNewGeom)
   bool geomChanged = true;
   GEOM::GEOM_Object_var oldGeom = GetShapeToMesh();
   if ( !theNewGeom->_is_nil() && !oldGeom->_is_nil() )
-    geomChanged = ( //oldGeom->_is_equivalent( theNewGeom ) ||
-                   oldGeom->GetTick() < theNewGeom->GetTick() );
+    geomChanged = ( oldGeom->GetTick() != theNewGeom->GetTick() );
 
   TopoDS_Shape S = _impl->GetShapeToMesh();
   GEOM_Client* geomClient = _gen_i->GetShapeReader();