Mesh: modernize C++: use range-based for loop

This commit is contained in:
wmayer
2023-08-15 10:55:05 +02:00
committed by wwmayer
parent 452aee7c6f
commit 7f49080952
52 changed files with 1293 additions and 1329 deletions

View File

@@ -159,8 +159,7 @@ bool TaskDecimating::accept()
if (absolute) {
targetSize = widget->targetNumberOfTriangles();
}
for (std::vector<Mesh::Feature*>::const_iterator it = meshes.begin(); it != meshes.end(); ++it) {
Mesh::Feature* mesh = *it;
for (auto mesh : meshes) {
Mesh::MeshObject* mm = mesh->Mesh.startEditing();
if (absolute) {
mm->decimate(targetSize);