points never assigned if not merged

This commit is contained in:
mattijs
2009-09-21 11:00:19 +01:00
parent 217d71b9ec
commit ce66ff5ed3

View File

@ -46,6 +46,11 @@ bool triSurface::stitchTriangles
pointField newPoints; pointField newPoints;
bool hasMerged = mergePoints(rawPoints, tol, verbose, pointMap, newPoints); bool hasMerged = mergePoints(rawPoints, tol, verbose, pointMap, newPoints);
pointField& ps = storedPoints();
// Set the coordinates to the merged ones
ps = newPoints;
if (hasMerged) if (hasMerged)
{ {
if (verbose) if (verbose)
@ -54,11 +59,6 @@ bool triSurface::stitchTriangles
<< " points down to " << newPoints.size() << endl; << " points down to " << newPoints.size() << endl;
} }
pointField& ps = storedPoints();
// Set the coordinates to the merged ones
ps = newPoints;
// Reset the triangle point labels to the unique points array // Reset the triangle point labels to the unique points array
label newTriangleI = 0; label newTriangleI = 0;
forAll(*this, i) forAll(*this, i)