From: eap Date: Wed, 18 Apr 2012 07:24:59 +0000 (+0000) Subject: tiny optimization X-Git-Tag: TRIPOLI_323~38 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a53a044a3fea2c491e66c67e4e6422695822618b;p=modules%2Fsmesh.git tiny optimization --- diff --git a/src/SMDS/SMDS_VolumeTool.cxx b/src/SMDS/SMDS_VolumeTool.cxx index 5346f49e7..eb8443aae 100644 --- a/src/SMDS/SMDS_VolumeTool.cxx +++ b/src/SMDS/SMDS_VolumeTool.cxx @@ -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; }