Mesh.to_vertices_and_faces

Mesh.to_vertices_and_faces()[source]

Return the vertices and faces of a mesh.

Returns

  • list[list[float]] – The vertices as a list of XYZ coordinates.

  • list[list[int]] – The faces as a list of lists of vertex indices.