Page 1 of 1

UV of a projection point

Posted: Mon Aug 17, 2020 5:35 am
by Felix Chang
Hi,
Is there a way to obtain the UV coordinate of the nearest point of orthogonal projection on a surface for a given point? A simple case of a point and a plane would be good for a start
Thanks,
Felix

Re: UV of a projection point

Posted: Tue Aug 18, 2020 2:42 am
by Thomas kalkbrener
Try querying IUVSurface_DG from the plane (or any other surface). IUVSurface_DG.GetNearestPoints() will return a single point lying on the surface. Use IUVSurface_DG.GetPointUV() to get its parameters.
Thomas

Re: UV of a projection point

Posted: Wed Aug 19, 2020 7:18 am
by Felix Chang
Thank you Thomas