THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/06/2005 at 10:27, xxxxxxxx wrote:
Oh, you should have been more clear (point inside/within a polygon).
This is different (and more complex). You may need to have a look at 'texture sampling' algorithms to see how sample points on a UV plane are mapped to the 3D polygon and do the inverse. Since this is not a procedural mapping (spherical, conical, cylindrical etc.) there is no way to create a transformation matrix to expedite the transform. And Barycentric coords may not help. Good for sampling interpolation, but not for point transformation (as far as I know). If I'm not mistaken, there will be a bit of partial-derivative Calculus involved (dU/dV type).