title: Distance from a point to a polyhedron or to a polygon
body: <p>I have a surface which is a polyhedron and I want to find the minimal distance between it and a given point <strong><em>P</em></strong>. 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.</p>