Mesh.to_vertices_and_faces

Mesh.to_vertices_and_faces()[source]

Return the vertices and faces of a mesh.

Returns

tuple – A 2-tuple containing

  • a list of vertices, represented by their XYZ coordinates, and

  • a list of faces.

Each face is a list of indices referencing the list of vertex coordinates.

Examples

>>>