From 60e456c8f4b244fb454fb6d8606fe16018b4c223 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Mon, 26 Nov 2018 16:33:12 +0100 Subject: [PATCH] Another libigl fix: Don't pass Eigen memory aligned objects by value. --- src/igl/point_simplex_squared_distance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/igl/point_simplex_squared_distance.cpp b/src/igl/point_simplex_squared_distance.cpp index 2b98bd2853..53052b835f 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;