UV of a projection point

Technical discussions
Post Reply
Felix Chang
Posts: 2
Joined: Wed Jul 03, 2019 11:47 pm

UV of a projection point

Post 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

Thomas kalkbrener
Posts: 1
Joined: Thu Oct 24, 2013 7:14 am

Re: UV of a projection point

Post 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

Felix Chang
Posts: 2
Joined: Wed Jul 03, 2019 11:47 pm

Re: UV of a projection point

Post by Felix Chang »

Thank you Thomas

Post Reply