How get spatial collision points?

How to find vertex in mesh I went through this a while back.

EDIT: I should say getting the information for triangles is about the same for vertices.