From 71c30256a4617bf7334d8f7352aa4dc60c199b3c Mon Sep 17 00:00:00 2001 From: mattijs Date: Fri, 6 Aug 2010 16:18:16 +0100 Subject: [PATCH] BUG: cuttingPlane : normal comparison --- src/sampling/cuttingPlane/cuttingPlane.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sampling/cuttingPlane/cuttingPlane.C b/src/sampling/cuttingPlane/cuttingPlane.C index 30b7de9bf6..35e98239aa 100644 --- a/src/sampling/cuttingPlane/cuttingPlane.C +++ b/src/sampling/cuttingPlane/cuttingPlane.C @@ -313,7 +313,7 @@ void Foam::cuttingPlane::walkCellCuts face f(faceVerts); // Orient face to point in the same direction as the plane normal - if ((f.normal(cutPoints) && normal()) < 0) + if ((f.normal(cutPoints) & normal()) < 0) { f = f.reverseFace(); }