mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 03:16:10 +00:00
changed calls of InterpolationParameters to find barycentric coordinates in a more robust manner
This commit is contained in:
parent
dc109cfeb9
commit
ea93c49e6d
@ -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];
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user