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