generation of vertices; coord conversion