Sphere.to_vertices_and_faces
- Sphere.to_vertices_and_faces(u=16, v=16, triangulated=False)[source]
Returns a list of vertices and faces
The vertex positions are in world coordinates.
- Parameters:
- uint, optional
Number of faces in the “u” direction.
- vint, optional
Number of faces in the “v” direction.
- triangulated: bool, optional
If True, triangulate the faces.
- Returns:
- list[list[float]]
A list of vertex locations.
- list[list[int]]
And a list of faces, with each face defined as a list of indices into the list of vertices.