From 25e6561f60eb71388c3f76e01376101cf0b569dd Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 7 Nov 2013 22:35:32 +0000 Subject: [PATCH] Changed the access to a segment endpoint according to the recent change P(x) -> Lerp(x) in the segment3 interface --- vcg/complex/algorithms/point_sampling.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcg/complex/algorithms/point_sampling.h b/vcg/complex/algorithms/point_sampling.h index 99921323..84b9cb5e 100644 --- a/vcg/complex/algorithms/point_sampling.h +++ b/vcg/complex/algorithms/point_sampling.h @@ -1165,7 +1165,7 @@ static void FaceSimilar(MetroMesh & m, VertexSampler &ps,int sampleNum, bool dua if (correctSafePointsBaryCoords) { // Add x,y sample with closePoint barycentric coords (on edge) - baryCoord[closeEdge] = (closePoint - borderEdges[closeEdge].P(1)).Norm()/edgeLength[closeEdge]; + baryCoord[closeEdge] = (closePoint - borderEdges[closeEdge].P1()).Norm()/edgeLength[closeEdge]; baryCoord[(closeEdge+1)%3] = 1 - baryCoord[closeEdge]; baryCoord[(closeEdge+2)%3] = 0; } else {