Do not remove Mesh on geometry change according to request #3134

This commit is contained in:
vsv 2020-02-12 16:35:57 +03:00
parent 4f9b4e3fb3
commit 800fdf5fdc
2 changed files with 3 additions and 1 deletions

View File

@ -2021,6 +2021,8 @@ CORBA::Boolean SMESH_Gen_i::Compute( SMESH::SMESH_Mesh_ptr theMesh,
if ( meshServant ) { if ( meshServant ) {
meshServant->Load(); meshServant->Load();
// NPAL16168: "geometrical group edition from a submesh don't modify mesh computation" // NPAL16168: "geometrical group edition from a submesh don't modify mesh computation"
// Clear meshy because it was not cleared in CheckGeomModif of previous call
meshServant->Clear();
meshServant->CheckGeomModif(); meshServant->CheckGeomModif();
// get local TopoDS_Shape // get local TopoDS_Shape
TopoDS_Shape myLocShape; TopoDS_Shape myLocShape;

View File

@ -2288,7 +2288,7 @@ void SMESH_Mesh_i::CheckGeomModif( bool isBreakLink )
if ( _preMeshInfo ) if ( _preMeshInfo )
_preMeshInfo->ForgetAllData(); _preMeshInfo->ForgetAllData();
_impl->Clear(); //_impl->Clear();
TopoDS_Shape newShape = _gen_i->GeomObjectToShape( mainGO ); TopoDS_Shape newShape = _gen_i->GeomObjectToShape( mainGO );
if ( newShape.IsNull() ) if ( newShape.IsNull() )
return; return;