VRMSPHERE(3VRMWL)Pyon manual · Mochi and Onigiri as VRM 1.0 avatars, in the Wolfram Language (tools/ff_makevrm.nb)VRMSPHERE(3VRMWL)

NAME

vrmSphere — a unit sphere as a grid of triangles

SYNOPSIS

vrmSphere[] · vrmSphere[nu, nv]

DESCRIPTION

nu slices round (40 by default) and nv rings from top to bottom (24); the seam's first and last column stay separate vertices; each normal is the position itself. The triangles are gathered with Reap and Sow, two per square of the grid and one at each pole.

RETURN VALUE

{v, n, i}: positions, normals, triangles (vertex numbers from 0).

SEE ALSO

vrmEllipsoid(3vrmwl), vrmOnigiri(3vrmwl), sphere(3vrm)

SOURCE

tools/ff_makevrm.nb: line 16 of its cells one after another (docs/man/src/ff_makevrm-cells.txt)

AUTHOR

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

COPYRIGHT

© Computational Classnotes · CC BY-NC-SA 4.0