From e16191b24c94b83423b79eb647cab0ef23211fe0 Mon Sep 17 00:00:00 2001
From: andy <andy>
Date: Mon, 14 Nov 2011 10:31:27 +0000
Subject: [PATCH] STYLE: Updated code comment

---
 .../faceAreaIntersect/faceAreaIntersect.C                | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/meshTools/AMIInterpolation/faceAreaIntersect/faceAreaIntersect.C b/src/meshTools/AMIInterpolation/faceAreaIntersect/faceAreaIntersect.C
index fe21beb23a6..cc1146c4ed3 100644
--- a/src/meshTools/AMIInterpolation/faceAreaIntersect/faceAreaIntersect.C
+++ b/src/meshTools/AMIInterpolation/faceAreaIntersect/faceAreaIntersect.C
@@ -36,7 +36,7 @@ void Foam::faceAreaIntersect::triSliceWithPlane
     const scalar len
 )
 {
-    const scalar matchTol = 1e-4;
+    const scalar matchTol = 1e-6;
 
     // distance to cutting plane
     FixedList<scalar, 3> d;
@@ -103,6 +103,7 @@ void Foam::faceAreaIntersect::triSliceWithPlane
 
             2 points above plane, 1 below
             - resulting quad above plane split into 2 triangles
+            - forget triangle below plane
         */
 
         // point under the plane
@@ -135,7 +136,8 @@ void Foam::faceAreaIntersect::triSliceWithPlane
                 /______\
 
                 1 point above plane, 2 below
-                - keep triangle avove intersection plane
+                - keep triangle above intersection plane
+                - forget quad below plane
             */
 
             // indices of remaining points
@@ -146,8 +148,7 @@ void Foam::faceAreaIntersect::triSliceWithPlane
             point p01 = planeIntersection(d, tri, i0, i1);
             point p02 = planeIntersection(d, tri, i0, i2);
 
-            // forget quad below plane
-            // - add triangle above plane to list
+            // add triangle above plane to list
             setTriPoints(tri[i0], p01, p02, nTris, tris);
         }
         else
-- 
GitLab