]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
tiny optimization
authoreap <eap@opencascade.com>
Wed, 18 Apr 2012 07:24:59 +0000 (07:24 +0000)
committereap <eap@opencascade.com>
Wed, 18 Apr 2012 07:24:59 +0000 (07:24 +0000)
src/SMDS/SMDS_VolumeTool.cxx

index 5346f49e790d1804268a6bd5244bf1b32329f51d..eb8443aae4e47cec2bba3d72e3cc7f511d52d16c 100644 (file)
@@ -523,7 +523,8 @@ bool SMDS_VolumeTool::Set (const SMDS_MeshElement* theVolume,
                topNode->Z() - botNode->Z() );
     myVolForward = ( botNormal.Dot( upDir ) < 0 );
 
-    myCurFace = -1; // previous setFace(0) didn't take myVolForward into account
+    if ( !myVolForward )
+      myCurFace = -1; // previous setFace(0) didn't take myVolForward into account
   }
   return true;
 }