From 6e3f10928e363447245fd563394050f306485de6 Mon Sep 17 00:00:00 2001 From: cignoni Date: Fri, 4 Dec 2009 08:32:00 +0000 Subject: [PATCH] better comment to interpolationParameter2 --- vcg/space/triangle3.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vcg/space/triangle3.h b/vcg/space/triangle3.h index 1e9e24cd..b0604bec 100644 --- a/vcg/space/triangle3.h +++ b/vcg/space/triangle3.h @@ -166,7 +166,12 @@ typename TriangleType::ScalarType QualityFace(const TriangleType &t) // More robust function to computing barycentric coords of a point inside a triangle. // it requires the knowledge of what is the direction that is more orthogonal to the face plane. -// Usually this info can be stored in a bit of the face flags (see updateFlags class members) +// Usually this info can be stored in a bit of the face flags (see updateFlags::FaceProjection(MeshType &m) ) +// and accessing the field with +// if(fp->Flags() & FaceType::NORMX ) axis = 0; +// else if(fp->Flags() & FaceType::NORMY ) axis = 1; +// else axis =2; +// InterpolationParameters(*fp,axis,Point,Bary); // This direction is used to project the triangle in 2D and solve the problem in 2D where it is well defined. template