diff --git a/src/sampling/sampledSurface/isoSurface/isoSurface.C b/src/sampling/sampledSurface/isoSurface/isoSurface.C index 9a60ab84ad..4e3d08f44a 100644 --- a/src/sampling/sampledSurface/isoSurface/isoSurface.C +++ b/src/sampling/sampledSurface/isoSurface/isoSurface.C @@ -24,15 +24,14 @@ License \*---------------------------------------------------------------------------*/ -#include "Field.H" #include "isoSurface.H" #include "dictionary.H" #include "polyMesh.H" #include "mergePoints.H" #include "tetMatcher.H" #include "syncTools.H" - #include "addToRunTimeSelectionTable.H" +#include "faceTriangulation.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // @@ -1867,7 +1866,128 @@ Foam::isoSurface::isoSurface } orientSurface(*this, faceEdges, edgeFace0, edgeFace1, edgeFacesRest); + + //combineCellTriangles(); } +//XXXXXXX +// Experimental retriangulation of triangles per cell. Problem is that +// -it is very expensive -only gets rid of internal points, not of boundary +// ones so limited benefit (e.g. 60 v.s. 88 triangles) +void Foam::isoSurface::combineCellTriangles() +{ + if (size() > 0) + { + DynamicList newTris(size()); + DynamicList