Trying to fix the remaining OSX warnings

This commit is contained in:
Vojtech Bubnik 2021-02-10 19:07:09 +01:00
parent 05a6cfeaea
commit 8049dd1f72
7 changed files with 27 additions and 6 deletions

View file

@ -653,8 +653,8 @@ inline bool intersect_ray_all_hits(
std::vector<igl::Hit> &hits)
{
auto ray_intersector = detail::RayIntersectorHits<VertexType, IndexedFaceType, TreeType, VectorType> {
vertices, faces, {tree},
origin, dir, VectorType(dir.cwiseInverse())
{ vertices, faces, {tree},
origin, dir, VectorType(dir.cwiseInverse()) }
};
if (! tree.empty()) {
ray_intersector.hits.reserve(8);