Get 2D vertice data relative to camera

So this problem has two steps.

  1. I want to get all the vertice data of meshes viewed by a camera, like what the wireframe view does
  2. And then I want to convert them to 2d data relative to the camera, so if you were looking at a point what would its coordinates be on the screen.