Added a new call of InterpolationParameters with infers the Normal by the Triangle itself
This commit is contained in:
parent
d4786a1702
commit
8370978230
|
@ -204,6 +204,13 @@ bool InterpolationParameters(const TriangleType t, const Point3<ScalarType> & N,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Handy Wrapper of the above one that calculate the normal on the triangle
|
||||||
|
template<class TriangleType, class ScalarType>
|
||||||
|
bool InterpolationParameters(const TriangleType t, const Point3<ScalarType> & P, Point3<ScalarType> & L)
|
||||||
|
{
|
||||||
|
Point3<ScalarType> N=vcg::Normal<TriangleType>(t);
|
||||||
|
return (InterpolationParameters<TriangleType,ScalarType>(t,N,P,L));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Function that computes the barycentric coords of a 2D triangle. Used by the above function.
|
// Function that computes the barycentric coords of a 2D triangle. Used by the above function.
|
||||||
|
|
Loading…
Reference in New Issue