X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH%2FSMESH_Gen.cxx;h=752b5f6ebaded468801dc43866724e1972e05ace;hb=9c03aded93701016bfbe0de6cc654c2d97631ee5;hp=504089aea77cf618f6939a85d77e6a23c5f15bd6;hpb=eef0bf5cc772a6bdacf6ae2a4d81fdcb9d3a7fdb;p=modules%2Fsmesh.git diff --git a/src/SMESH/SMESH_Gen.cxx b/src/SMESH/SMESH_Gen.cxx index 504089aea..752b5f6eb 100644 --- a/src/SMESH/SMESH_Gen.cxx +++ b/src/SMESH/SMESH_Gen.cxx @@ -371,9 +371,6 @@ bool SMESH_Gen::Compute(SMESH_Mesh & aMesh, MEMOSTAT; - if ( aCompactMesh ) - aMesh.GetMeshDS()->compactMesh(); - // fix quadratic mesh by bending iternal links near concave boundary if ( aCompactMesh && // a final compute aShape.IsSame( aMesh.GetShapeToMesh() ) && @@ -386,6 +383,10 @@ bool SMESH_Gen::Compute(SMESH_Mesh & aMesh, aHelper.FixQuadraticElements( sm->GetComputeError() ); } } + + if ( aCompactMesh ) + aMesh.GetMeshDS()->compactMesh(); + return ret; }