NAME
sphere — a unit sphere as a grid of triangles
SYNOPSIS
sphere(nu=40, nv=24)
DESCRIPTION
nu slices around and nv rings from top to bottom. The first and last column meet at the seam but stay separate vertices, so that the grid is regular; on a unit sphere each normal is the position itself. Onigiri's body starts as one, 64 by 40.
PARAMETERS
nu: slices round; 40 by default. nv: rings top to bottom; 24 by default.
RETURN VALUE
(V, N, I): positions, normals and triangles.
SEE ALSO
SOURCE
AUTHOR
Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.
COPYRIGHT
© Computational Classnotes · CC BY-NC-SA 4.0
