Generates vertex and index data for rendering meshes