Handbook
Glossary
group-indices ( index-stride triangle-count indices -- grouped-indices )
Vocabulary
game
.
models
.
collada
.
private
Inputs
index-stride
a
number
triangle-count
a
number
indices
a
sequence
Outputs
grouped-indices
a
sequence
Word description
Groups the index sequence by triangle and then groups each triangle's indices by vertex.
Definition
USING:
grouping
kernel
math
sequences
;
IN:
game.models.collada.private
:
group-indices
( index-stride triangle-count indices -- grouped-indices )
dup
length
rot
/
group
swap
[
group
]
curry
map
;