I'm a javascript user but, at the end of your triangles definition you have "7[};][1]" that looks odd. Try
int[] triangles = new int[] {
0, 1, 2, 2, 3, 0,
1, 5, 6, 6, 2, 1,
3, 2, 6, 6, 7, 3,
4, 5, 1, 1, 0, 4,
0, 3, 7, 7, 4, 0,
7, 6, 5, 5, 4, 7};
↧