From a53a044a3fea2c491e66c67e4e6422695822618b Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 18 Apr 2012 07:24:59 +0000 Subject: [PATCH] tiny optimization --- src/SMDS/SMDS_VolumeTool.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.2