From 7d79636f0bec6a5e703f3a9c81c9052d6e5ed0cf Mon Sep 17 00:00:00 2001 From: ange-clement Date: Mon, 11 Sep 2023 17:48:24 +0200 Subject: [PATCH] Removed unnecessary lines --- Polyhedron/demo/Polyhedron/Scene_triangulation_3_item.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Polyhedron/demo/Polyhedron/Scene_triangulation_3_item.cpp b/Polyhedron/demo/Polyhedron/Scene_triangulation_3_item.cpp index 837d859aa97..91e88fb6ae2 100644 --- a/Polyhedron/demo/Polyhedron/Scene_triangulation_3_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_triangulation_3_item.cpp @@ -904,13 +904,9 @@ Scene_triangulation_3_item_priv::compute_color_map(const QColor& c) colors[*it] = QColor::fromHsvF(hue, c.saturationF(), patch_hsv_value); } - const size_type nb_visible_patch_indices = visible_surface_patch_to_subdomain.size(); - i = 0; for (std::unordered_map::iterator it = visible_surface_patch_to_subdomain.begin(), - end = visible_surface_patch_to_subdomain.end(); it != end; ++it, i += 1.) + end = visible_surface_patch_to_subdomain.end(); it != end; ++it) { - double hue = c.hueF() + 1. / double(nb_patch_indices) * i; - if (hue > 1) { hue -= 1.; } colors[it->first] = colors_subdomains[it->second]; } }