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

NAME

view — append bytes and a bufferView

SYNOPSIS

g.view(data, target=None)

DESCRIPTION

Pads the buffer to 4 bytes, appends the data, and adds a bufferView over it.

PARAMETERS

data: bytes. target: 34962 for vertex data, 34963 for triangle indices, or none.

RETURN VALUE

The bufferView's index.

SEE ALSO

acc(3vrm), GLB(3vrm)

SOURCE

tools/make-vrm.py, line 426

AUTHOR

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

COPYRIGHT

© Computational Classnotes · CC BY-NC-SA 4.0