Here’s a little illustration, essentially every three entries in the array is a vertice in each triangle. The picture should explain it.