Block.to_vertices_and_faces

Block.to_vertices_and_faces(triangulated=False)

Return the vertices and faces of a mesh.

Parameters:
triangulated: bool, optional

If True, triangulate the faces.

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.