mirror of https://github.com/CGAL/cgal
face index to size_t warning fix
This commit is contained in:
parent
b2d64c796c
commit
2fac5f2f13
|
|
@ -154,8 +154,9 @@ int main(int argc, char *argv[]) {
|
||||||
static_cast<unsigned char>(rand() % 256));
|
static_cast<unsigned char>(rand() % 256));
|
||||||
|
|
||||||
// Iterate through all region items.
|
// Iterate through all region items.
|
||||||
|
using size_type = typename Polygon_mesh::size_type;
|
||||||
for (const auto index : region)
|
for (const auto index : region)
|
||||||
face_color[static_cast<Face_index>(index)] = color;
|
face_color[Face_index(static_cast<size_type>(index))] = color;
|
||||||
}
|
}
|
||||||
|
|
||||||
out << polygon_mesh;
|
out << polygon_mesh;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue