use vertexIndex to get correct winding order