Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c33958
)
tiny optimization
author
eap
<eap@opencascade.com>
Wed, 18 Apr 2012 07:24:59 +0000
(07:24 +0000)
committer
eap
<eap@opencascade.com>
Wed, 18 Apr 2012 07:24:59 +0000
(07:24 +0000)
src/SMDS/SMDS_VolumeTool.cxx
patch
|
blob
|
history
diff --git
a/src/SMDS/SMDS_VolumeTool.cxx
b/src/SMDS/SMDS_VolumeTool.cxx
index 5346f49e790d1804268a6bd5244bf1b32329f51d..eb8443aae4e47cec2bba3d72e3cc7f511d52d16c 100644
(file)
--- 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;
}