I noticed while working in Unity that IndicesForFaceFromAccessor made assumptions about the geometry -- it always assumed the mode was TRIANGLES. However, the math is completely different for TRIANGLE_FAN and TRIANGLE_STRIP modes.
I'm opening this PR to add proper support for the other triangle types.
I noticed while working in Unity that
IndicesForFaceFromAccessor
made assumptions about the geometry -- it always assumed the mode wasTRIANGLES
. However, the math is completely different forTRIANGLE_FAN
andTRIANGLE_STRIP
modes. I'm opening this PR to add proper support for the other triangle types.