diff --git a/src/igl/point_simplex_squared_distance.cpp b/src/igl/point_simplex_squared_distance.cpp index 2b98bd285..53052b835 100644 --- a/src/igl/point_simplex_squared_distance.cpp +++ b/src/igl/point_simplex_squared_distance.cpp @@ -43,7 +43,7 @@ IGL_INLINE void igl::point_simplex_squared_distance( }; // Real-time collision detection, Ericson, Chapter 5 const auto & ClosestBaryPtPointTriangle = - [&Dot](Point p, Point a, Point b, Point c, BaryPoint& bary_out )->Point + [&Dot](const Point &p, const Point &a, const Point &Point b, const Point &Point c, BaryPoint& bary_out )->Point { // Check if P in vertex region outside A Vector ab = b - a;