Original Post
hi!
i wrote a prog, that needs to calculate the distance between a point and a triangle ( 3D ). My algorithm works fine but runs very slowly. It uses a function that calculates if a ray intersects a triangle: ray origin is the point and the direction is the inverse of the tri normal ), if not intersects than calculates three edge-point distance. This is really very slow.
Do you know a much faster solution?
Thanks