Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Distance from a point to a polyhedron or to a polygon

I have a surface which is a polyhedron and I want to find the minimal distance between it and a given point P. Since the polyhedron is defined by many polygons in a 3d space, one way that occurs to me is to compare the distance to each polygon and choose the shortest distance. Still I am not sure about it.

like image 906
Sambatyon Avatar asked Mar 12 '10 14:03

Sambatyon


1 Answers

Implementations of Gilbert–Johnson–Keerthi:
http://www.comlab.ox.ac.uk/stephen.cameron/distances/gjk2.4/
http://code.google.com/p/gjkd/

like image 165
AVB Avatar answered Sep 19 '22 05:09

AVB