Fix cgal when used from distro package

fix CMake -frounding-math propagation from CGAL.
This commit is contained in:
tamasmeszaros 2020-01-28 14:49:07 +01:00
parent 69549af9ac
commit 04a58e41c4
2 changed files with 20 additions and 13 deletions

View file

@ -111,7 +111,7 @@ static TriangleMesh cgal_to_triangle_mesh(const _CGALMesh &cgalmesh)
auto vtc = cgalmesh.vertices_around_face(cgalmesh.halfedge(face));
int i = 0;
Vec3crd trface;
for (auto v : vtc) trface(i++) = int(v.idx());
for (auto v : vtc) trface(i++) = static_cast<unsigned>(v);
facets.emplace_back(trface);
}