From f815a6bba4dd5f0511c8befbbe9578eb843112cc Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Fri, 15 Nov 2013 20:05:18 +0000 Subject: [PATCH] ENH: pointToPointPlanar: added comment --- .../pointToPointPlanarInterpolation.C | 32 +++++++++++++++++++ .../triSurfaceTools/triSurfaceTools.C | 8 ++++- 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/src/meshTools/triSurface/triSurfaceTools/pointToPointPlanarInterpolation.C b/src/meshTools/triSurface/triSurfaceTools/pointToPointPlanarInterpolation.C index bc1402bd7a3..a850308c6ed 100644 --- a/src/meshTools/triSurface/triSurfaceTools/pointToPointPlanarInterpolation.C +++ b/src/meshTools/triSurface/triSurfaceTools/pointToPointPlanarInterpolation.C @@ -209,6 +209,38 @@ void Foam::pointToPointPlanarInterpolation::calcWeights nearestVertex_, nearestVertexWeight_ ); + + //if (debug) + //{ + // forAll(sourcePoints, i) + // { + // Pout<< "source:" << i << " at:" << sourcePoints[i] + // << " 2d:" << localVertices[i] + // << endl; + // } + // + // + // forAll(destPoints, i) + // { + // label v0 = nearestVertex_[i][0]; + // label v1 = nearestVertex_[i][1]; + // label v2 = nearestVertex_[i][2]; + // + // Pout<< "For location " << destPoints[i] + // << " 2d:" << localFaceCentres[i] + // << " sampling vertices" << nl + // << " " << v0 + // << " at:" << sourcePoints[v0] + // << " weight:" << nearestVertexWeight_[i][0] << nl + // << " " << v1 + // << " at:" << sourcePoints[v1] + // << " weight:" << nearestVertexWeight_[i][1] << nl + // << " " << v2 + // << " at:" << sourcePoints[v2] + // << " weight:" << nearestVertexWeight_[i][2] << nl + // << endl; + // } + //} } diff --git a/src/meshTools/triSurface/triSurfaceTools/triSurfaceTools.C b/src/meshTools/triSurface/triSurfaceTools/triSurfaceTools.C index 96794adaac6..0f6d31c9986 100644 --- a/src/meshTools/triSurface/triSurfaceTools/triSurfaceTools.C +++ b/src/meshTools/triSurface/triSurfaceTools/triSurfaceTools.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -2745,6 +2745,12 @@ void Foam::triSurfaceTools::calcInterpolationWeights calcInterpolationWeights(tri, nearest.rawPoint(), weights); + //Pout<< "calcScalingFactors : samplePt:" << samplePt + // << " distance:" << nearest.distance() + // << " to verts:" << verts + // << " weights:" << weights + // << endl; + break; } } -- GitLab