mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
Compress mesh in SwapImprove2
This commit is contained in:
parent
94d0a5a585
commit
9fdd28e3b8
@ -3802,6 +3802,7 @@ void MeshOptimize3d :: SwapImprove2Sequential (Mesh & mesh, OPTIMIZEGOAL goal)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
mesh.Compress();
|
||||||
bad1 = mesh.CalcTotalBad (mp);
|
bad1 = mesh.CalcTotalBad (mp);
|
||||||
(*testout) << "Total badness = " << bad1 << endl;
|
(*testout) << "Total badness = " << bad1 << endl;
|
||||||
(*testout) << "swapimprove2 done" << "\n";
|
(*testout) << "swapimprove2 done" << "\n";
|
||||||
@ -3890,6 +3891,7 @@ void MeshOptimize3d :: SwapImprove2 (Mesh & mesh, OPTIMIZEGOAL goal)
|
|||||||
|
|
||||||
PrintMessage (5, cnt, " swaps performed");
|
PrintMessage (5, cnt, " swaps performed");
|
||||||
|
|
||||||
|
mesh.Compress();
|
||||||
bad1 = mesh.CalcTotalBad (mp);
|
bad1 = mesh.CalcTotalBad (mp);
|
||||||
(*testout) << "Total badness = " << bad1 << endl;
|
(*testout) << "Total badness = " << bad1 << endl;
|
||||||
(*testout) << "swapimprove2 done" << "\n";
|
(*testout) << "swapimprove2 done" << "\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user