From db53730ae7addb5ddc0d65d2d020a14622b0e04c Mon Sep 17 00:00:00 2001 From: cignoni Date: Wed, 14 Apr 2010 09:16:13 +0000 Subject: [PATCH] better comments for intersectionLineTriangle --- vcg/space/intersection3.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vcg/space/intersection3.h b/vcg/space/intersection3.h index 00eaff77..25bda6f3 100644 --- a/vcg/space/intersection3.h +++ b/vcg/space/intersection3.h @@ -438,12 +438,16 @@ namespace vcg { /* * Function computing the intersection between a line and a triangle. * from: - * Tomas Möller and Ben Trumbore, + * Tomas Moller and Ben Trumbore, * ``Fast, Minimum Storage Ray-Triangle Intersection'', * journal of graphics tools, vol. 2, no. 1, pp. 21-28, 1997 * @param[in] line * @param[in] triangle vertices - * @param[out] intersection the intersection point, meaningful only if the line intersects the triangle + * @param[out]=(t,u,v) the intersection point, meaningful only if the line intersects the triangle + * t is the line parameter and + * (u,v) are the baricentric coords of the intersection point + * + * Line.Orig + t * Line.Dir = (1-u-v) * Vert0 + u * Vert1 +v * Vert2 * */