How to turn separately indexed vertex and and texture index arrays (such as found in a 3DSMax model, or almost any other modeling package) into an appropriately factored single-index vertex array, as used by accelerated 3D hardware (both openGL and Direct3D).