Skip to content
Snippets Groups Projects
Commit ce66ff5e authored by mattijs's avatar mattijs
Browse files

points never assigned if not merged

parent 217d71b9
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,11 @@ bool triSurface::stitchTriangles
pointField newPoints;
bool hasMerged = mergePoints(rawPoints, tol, verbose, pointMap, newPoints);
pointField& ps = storedPoints();
// Set the coordinates to the merged ones
ps = newPoints;
if (hasMerged)
{
if (verbose)
......@@ -54,11 +59,6 @@ bool triSurface::stitchTriangles
<< " 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
label newTriangleI = 0;
forAll(*this, i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment