Revolution.to_vertices_and_faces

Revolution.to_vertices_and_faces(n_profile=16, n_angle=32)

Discretise the revolution into vertices and faces.

Rotates the profile around the revolution axis at n_angle evenly spaced steps.

Parameters:
n_profileint

Number of sample points for circular profiles.

n_angleint

Number of angular steps around the revolution.

Returns:
tuple[list[list[float]], list[list[int]]]

(vertices, faces) suitable for Mesh.from_vertices_and_faces().