Torus.to_vertices_and_faces

Torus.to_vertices_and_faces(triangulated=False, u=None, v=None)[source]

Convert the shape to a list of vertices and faces.

Parameters:
triangulatedbool, optional

If True, triangulate the faces.

uint, optional

Number of faces in the “u” direction. If no value is provided, the value of self.resolution_u will be used.

vint, optional

Number of faces in the “v” direction. If no value is provided, the value of self.resolution_v will be used.

Returns:
list of list of float

The vertices of the shape.

list of list of int

The faces of the shape.