new function to get local poly verts

re-based and re-written in current master