changed calls of InterpolationParameters to find barycentric coordinates in a more robust manner

This commit is contained in:
Nico Pietroni nicopietroni 2010-05-25 14:58:31 +00:00
parent dc109cfeb9
commit ea93c49e6d

View File

@ -330,7 +330,7 @@ void AddVert(CMeshO::VertexType &p)
if(dist == dist_upper_bound) return ;
Point3f interp;
bool ret = InterpolationParameters(*nearestF,closestPt, interp[0], interp[1], interp[2]);
bool ret = InterpolationParameters(*nearestF,(*nearestF).cN(),closestPt, interp[0], interp[1], interp[2]);
//assert(ret);
interp[2]=1.0-interp[1]-interp[0];