From 2fac5f2f13ba3c9a2bc7e89a8ae548c031f710db Mon Sep 17 00:00:00 2001 From: Dmitry Anisimov Date: Tue, 21 May 2019 17:52:00 +0200 Subject: [PATCH] face index to size_t warning fix --- .../Shape_detection/region_growing_on_polygon_mesh.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Shape_detection/examples/Shape_detection/region_growing_on_polygon_mesh.cpp b/Shape_detection/examples/Shape_detection/region_growing_on_polygon_mesh.cpp index f7b46da219f..e49cee21325 100644 --- a/Shape_detection/examples/Shape_detection/region_growing_on_polygon_mesh.cpp +++ b/Shape_detection/examples/Shape_detection/region_growing_on_polygon_mesh.cpp @@ -154,8 +154,9 @@ int main(int argc, char *argv[]) { static_cast(rand() % 256)); // Iterate through all region items. + using size_type = typename Polygon_mesh::size_type; for (const auto index : region) - face_color[static_cast(index)] = color; + face_color[Face_index(static_cast(index))] = color; } out << polygon_mesh;