Handbook
Glossary
face>aos ( x -- y )
Vocabulary
game
.
models
.
obj
.
private
Inputs
x
a
sequence
Outputs
y
a
sequence
Word description
Convert a face line to a sequence of vertex attributes.
Definition
USING:
arrays
combinators
kernel
sequences
;
IN:
game.models.obj.private
:
face>aos
( x -- y )
dup
length
{
{
3
[
[
triangle>aos
1array
]
map
1array
]
}
{
4
[
quad>aos
2array
]
}
}
case
;