Salome HOME
improve comment
authoreap <eap@opencascade.com>
Tue, 20 Jul 2010 06:05:22 +0000 (06:05 +0000)
committereap <eap@opencascade.com>
Tue, 20 Jul 2010 06:05:22 +0000 (06:05 +0000)
src/SMESH/SMESH_MeshEditor.cxx

index 3677674b5d90d854e15adb6fa82e1675f1e1d525..8d9f81972a87646e39784877ffedfb5ce9958105 100644 (file)
@@ -9059,8 +9059,9 @@ void SMESH_MeshEditor::ConvertToQuadratic(const bool theForce3d)
       ReplaceElemInGroups(volume, NewVolume, meshDS);
     }
   }
-  if ( !theForce3d  && !getenv("NO_FixQuadraticElements")) {
-    aHelper.SetSubShape(0); // apply to the whole mesh
+  if ( !theForce3d  && !getenv("NO_FixQuadraticElements"))
+  { // setenv NO_FixQuadraticElements to know if FixQuadraticElements() is guilty of bad conversion
+    aHelper.SetSubShape(0); // apply FixQuadraticElements() to the whole mesh
     aHelper.FixQuadraticElements();
   }
 }