From 8b72dbedbeb5ef79646a320f354bb3e1d2886952 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Sun, 23 Nov 2008 15:08:16 +0100 Subject: [PATCH] sampling changes - cuttingPlane and sampledPatch now use PrimitiveMeshedSurface for their storage. - cuttingPlane always triangulates since the cut faces tend to look quite horrible anyhow. - moved triangulation request out of sampledSurface to the inherited classes. It might disappear anyhow. --- src/sampling/Make/options | 2 + src/sampling/cuttingPlane/cuttingPlane.C | 184 +++++++----------- src/sampling/cuttingPlane/cuttingPlane.H | 72 ++++--- ...gPlaneSample.C => cuttingPlaneTemplates.C} | 2 +- .../sampledSurface/patch/sampledPatch.C | 91 ++++----- .../sampledSurface/patch/sampledPatch.H | 19 +- .../sampledSurface/plane/sampledPlane.C | 90 ++------- .../sampledSurface/plane/sampledPlane.H | 41 ++-- .../sampledSurface/sampledSurface.C | 5 +- .../sampledSurface/sampledSurface.H | 18 +- 10 files changed, 190 insertions(+), 334 deletions(-) rename src/sampling/cuttingPlane/{cuttingPlaneSample.C => cuttingPlaneTemplates.C} (96%) diff --git a/src/sampling/Make/options b/src/sampling/Make/options index 5bfdcb260c..6629b3652c 100644 --- a/src/sampling/Make/options +++ b/src/sampling/Make/options @@ -1,10 +1,12 @@ EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ + -I$(LIB_SRC)/surfMesh/lnInclude \ -I$(LIB_SRC)/triSurface/lnInclude \ -I$(LIB_SRC)/lagrangian/basic/lnInclude LIB_LIBS = \ -lfiniteVolume \ -lmeshTools \ + -lsurfMesh \ -ltriSurface diff --git a/src/sampling/cuttingPlane/cuttingPlane.C b/src/sampling/cuttingPlane/cuttingPlane.C index e1a0212ff0..8c36e11d28 100644 --- a/src/sampling/cuttingPlane/cuttingPlane.C +++ b/src/sampling/cuttingPlane/cuttingPlane.C @@ -45,7 +45,7 @@ void Foam::cuttingPlane::calcCutCells ( const primitiveMesh& mesh, const scalarField& dotProducts, - const labelList& cellIdLabels + const UList