Salome HOME
0022091: [CEA 760] Regression on test test check_mesh_stability.py
authoreap <eap@opencascade.com>
Wed, 6 Feb 2013 13:04:18 +0000 (13:04 +0000)
committereap <eap@opencascade.com>
Wed, 6 Feb 2013 13:04:18 +0000 (13:04 +0000)
In Compute(), call aHelper.FixQuadraticElements() only if everything is OK

src/SMESH/SMESH_Gen.cxx

index a9da55b41e72916cded85d63ad6c7093a6f53585..a9ef17d1eb215f0aa5ebb2679111f65eef81a9bb 100644 (file)
@@ -371,7 +371,8 @@ bool SMESH_Gen::Compute(SMESH_Mesh &          aMesh,
 
   // fix quadratic mesh by bending iternal links near concave boundary
   if ( aShape.IsSame( aMesh.GetShapeToMesh() ) &&
-       !aShapesId ) // not preview
+       !aShapesId && // not preview
+       ret ) // everything is OK
   {
     SMESH_MesherHelper aHelper( aMesh );
     if ( aHelper.IsQuadraticMesh() != SMESH_MesherHelper::LINEAR )