Compress mesh in SwapImprove2

This commit is contained in:
Matthias Hochsteger 2019-10-30 16:09:04 +01:00
parent 94d0a5a585
commit 9fdd28e3b8

View File

@ -3802,6 +3802,7 @@ void MeshOptimize3d :: SwapImprove2Sequential (Mesh & mesh, OPTIMIZEGOAL goal)
*/
mesh.Compress();
bad1 = mesh.CalcTotalBad (mp);
(*testout) << "Total badness = " << bad1 << endl;
(*testout) << "swapimprove2 done" << "\n";
@ -3890,6 +3891,7 @@ void MeshOptimize3d :: SwapImprove2 (Mesh & mesh, OPTIMIZEGOAL goal)
PrintMessage (5, cnt, " swaps performed");
mesh.Compress();
bad1 = mesh.CalcTotalBad (mp);
(*testout) << "Total badness = " << bad1 << endl;
(*testout) << "swapimprove2 done" << "\n";