Changed the access to a segment endpoint according to the recent change P(x) -> Lerp(x) in the segment3 interface

This commit is contained in:
Paolo Cignoni 2013-11-07 22:35:32 +00:00
parent 3bdf666e86
commit 25e6561f60
1 changed files with 1 additions and 1 deletions

View File

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