Building shapes out of points, lines, and faces
Using face set coordinate index lists
- A triangle is drawn connecting sequences of coordinate indexes
- -1 marks a break in the sequence
- Each face is automatically closed, connecting the last
index back to the first
- coordIndex [ 1, 0, 3, 8, -1, 5, 9, 0 ]
1, 0, 3, 8 |
Draw face from 1 to 0 to 3 to 8 to 1 |
-1, |
End face, start next |
5, 9, 0 |
Draw face from 5 to 9 to 0 to 5 |