From f53538b831d711029f533fc9af04f0a016c1e34b Mon Sep 17 00:00:00 2001 From: graham Date: Thu, 11 Nov 2010 17:49:22 +0000 Subject: [PATCH] BUG: stitchTriangles reordering the points, not renumbering the tris. --- src/triSurface/triSurface/stitchTriangles.C | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/triSurface/triSurface/stitchTriangles.C b/src/triSurface/triSurface/stitchTriangles.C index f58e3d464f..8771aeaec5 100644 --- a/src/triSurface/triSurface/stitchTriangles.C +++ b/src/triSurface/triSurface/stitchTriangles.C @@ -46,13 +46,14 @@ bool triSurface::stitchTriangles pointField newPoints; bool hasMerged = mergePoints(rawPoints, tol, verbose, pointMap, newPoints); - pointField& ps = storedPoints(); - - // Set the coordinates to the merged ones - ps.transfer(newPoints); - if (hasMerged) { + pointField& ps = storedPoints(); + + // Set the coordinates to the merged ones + ps.transfer(newPoints); + + if (verbose) { Pout<< "stitchTriangles : Merged from " << rawPoints.size()