From bffc61bc7ce6a6eccdd3033b17aab7a7cea578e9 Mon Sep 17 00:00:00 2001 From: nico Date: Mon, 23 Jan 2017 16:18:52 +0100 Subject: [PATCH] correct one compile error in TriangleSegmentDistance --- vcg/space/distance3.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vcg/space/distance3.h b/vcg/space/distance3.h index 2f00a542..7c1b7548 100644 --- a/vcg/space/distance3.h +++ b/vcg/space/distance3.h @@ -472,11 +472,11 @@ void TriangleSegmentDistance(const vcg::Triangle3 &t, ///project endpoints and see if they fall into the triangle vcg::Plane3 pl3; pl3.Init(t.P(0),t.P(1),t.P(2)); - CoordType pj0=pl3.Projection(s.P(0)); - CoordType pj1=pl3.Projection(s.P(1)); + CoordType pj0=pl3.Projection(s.P0()); + CoordType pj1=pl3.Projection(s.P1()); ///take distances - ScalarType dpj0=(pj0-s.P(0)).Norm(); - ScalarType dpj1=(pj1-s.P(1)).Norm(); + ScalarType dpj0=(pj0-s.P0()).Norm(); + ScalarType dpj1=(pj1-s.P1()).Norm(); ///test if they fall inside the triangle CoordType bary0,bary1;