soa>aos ( triangles-indices sources -- attribute-buffer index-buffer )


Vocabulary
game.models.collada.private

Inputs
triangles-indicesa sequence
sourcesa sequence


Outputs
attribute-buffera sequence
index-buffera sequence


Word description
Swizzles the input sources from a structure of arrays form to an array of structures form and generates a new index buffer.

Definition


:: soa>aos
( triangles-indices sources -- attribute-buffer index-buffer )
[
triangles-indices
[ [ sources pack-attributes , ] each ] each
] V{ } V{ } H{ } <indexed-seq> make [ dseq>> ] [ iseq>> ] bi
;