Another libigl fix: Don't pass Eigen memory aligned objects by value.

This commit is contained in:
bubnikv 2018-11-26 16:33:12 +01:00
parent a4e204012d
commit 60e456c8f4

View File

@ -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;