Minor Fix to getTriangleIndex