NAME
acc — append an array and its accessor
SYNOPSIS
g.acc(arr, ctype, typ, target=None, minmax=False)
PARAMETERS
arr: a NumPy array. ctype: 5121 (unsigned byte), 5125 (unsigned int) or 5126 (float). typ: "SCALAR", "VEC3", "VEC4" or "MAT4". target: as for view(). minmax: True to write the bounds, which glTF requires for positions and morph-target positions.
RETURN VALUE
The accessor's index.
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
