group-indices ( index-stride triangle-count indices -- grouped-indices )


Vocabulary
game.models.collada.private

Inputs
index-stridea number
triangle-counta number
indicesa sequence


Outputs
grouped-indicesa sequence


Word description
Groups the index sequence by triangle and then groups each triangle's indices by vertex.

Definition


: group-indices
( index-stride triangle-count indices -- grouped-indices )
dup length rot / group swap [ group ] curry map ;