From fe068c3bc9b6389415b1019978ef12d0a6c2cffc Mon Sep 17 00:00:00 2001 From: andy <andy> Date: Tue, 8 Nov 2011 16:30:03 +0000 Subject: [PATCH] STYLE: corrected multi-line comment warnings --- .../faceAreaIntersect/faceAreaIntersect.C | 78 +++++++++++-------- 1 file changed, 46 insertions(+), 32 deletions(-) diff --git a/src/meshTools/AMIInterpolation/faceAreaIntersect/faceAreaIntersect.C b/src/meshTools/AMIInterpolation/faceAreaIntersect/faceAreaIntersect.C index 218c41afbfd..fe21beb23a6 100644 --- a/src/meshTools/AMIInterpolation/faceAreaIntersect/faceAreaIntersect.C +++ b/src/meshTools/AMIInterpolation/faceAreaIntersect/faceAreaIntersect.C @@ -80,25 +80,30 @@ void Foam::faceAreaIntersect::triSliceWithPlane || ((nPos == 2) && (nCoPlanar == 1)) || ((nPos == 1) && (nCoPlanar == 2))) { - // all points above cutting plane - add triangle to list + /* + /\ _____ + / \ \ / /\ + /____\ \ / / \ + __________ ____v____ __/____\__ - // /\ _____ - // / \ \ / /\ - // /____\ \ / / \ - // __________ ____v____ __/____\__ + all points above cutting plane + - add complete triangle to list + */ tris[nTris++] = tri; } else if ((nPos == 2) && (nCoPlanar == 0)) { - // 2 points above plane, 1 below - // resulting quad above plane split into 2 triangles + /* + ________ + \ / + --\----/-- + \ / + \/ - // ________ - // \ / - // --\----/-- - // \ / - // \/ + 2 points above plane, 1 below + - resulting quad above plane split into 2 triangles + */ // point under the plane label i0 = negI; @@ -123,12 +128,15 @@ void Foam::faceAreaIntersect::triSliceWithPlane if (nCoPlanar == 0) { - // 1 point above plane, 2 below + /* + /\ + / \ + --/----\-- + /______\ - // /\ - // / \ - // --/----\-- - // /______\ + 1 point above plane, 2 below + - keep triangle avove intersection plane + */ // indices of remaining points label i1 = d.fcIndex(i0); @@ -144,14 +152,19 @@ void Foam::faceAreaIntersect::triSliceWithPlane } else { - // 1 point above plane, 1 on plane, 1 below + /* - // |\ - // | \ - // __|__\__ - // | / - // | / - // |/ + |\ + | \ + __|__\__ + | / + | / + |/ + + + 1 point above plane, 1 on plane, 1 below + - keep triangle above intersection plane + */ // point indices label i1 = negI; @@ -173,14 +186,15 @@ void Foam::faceAreaIntersect::triSliceWithPlane } else { - // all points below cutting plane - forget - - // _________ __________ ___________ - // /\ \ / - // /\ / \ \ / - // / \ /____\ \/ - // /____\ - + /* + _________ __________ ___________ + /\ \ / + /\ / \ \ / + / \ /____\ \/ + /____\ + + all points below cutting plane - forget + */ } } -- GitLab