Calculate nearest vert

Blitz3D Forums/Blitz3D Programming/Calculate nearest vert

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi

Given a point on a triangle, what's the best way to calculate the nearest vertex to that point?

I'm thinking maybe there's a clever way of doing this or is it just a case of calculating the distance to each vertex in the tri, then comparing results to find the shortest distance?

Cheers.