SPHERE(3VRM)Pyon manual · Mochi and Onigiri as VRM 1.0 avatars (tools/make-vrm.py, Python)SPHERE(3VRM)

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

ellipsoid(3vrm), onigiri(3vrm)

SOURCE

tools/make-vrm.py, line 66

AUTHOR

Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.

COPYRIGHT

© Computational Classnotes · CC BY-NC-SA 4.0