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

NAME

ellipsoid — a sphere stretched, turned and moved

SYNOPSIS

ellipsoid(c, r, R=np.eye(3), nu=40, nv=24)

DESCRIPTION

The unit sphere scaled by the radii r, turned by R and moved to the centre c. The normals are scaled by 1/r (the rule for normals under scaling), turned, and made unit length, so the light falls correctly on a squat ball. Mochi's body, the eyes, highlights, cheeks, mouths, feet and the orange dot are ellipsoids.

PARAMETERS

c: the centre, (x, y, z) in metres. r: the radii (rx, ry, rz). R: a rotation, such as rot_to(normal); none by default. nu, nv: the grid, as for sphere().

RETURN VALUE

(V, N, I).

SEE ALSO

sphere(3vrm), rot_to(3vrm)

SOURCE

tools/make-vrm.py, line 84

AUTHOR

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

COPYRIGHT

© Computational Classnotes · CC BY-NC-SA 4.0