BUG: stitchTriangles reordering the points, not renumbering the tris.

This commit is contained in:
graham
2010-11-11 17:49:22 +00:00
parent 34806371b1
commit f53538b831

View File

@ -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()