Similar changes done elsewhere (#116901), replace usage of the GPU API's `GPU_indexbuf_add_generic_vert` function by simply writing the index data that we need. This avoids a function call and min/max tests for every index added. Pull Request: https://projects.blender.org/blender/blender/pulls/135404