We are trying to port the RoomCapture app to Swift and are facing a problem while trying to render a partial mesh.
We are using the glDrawElements as shown below
glDrawElements(GLenum(GL_TRIANGLES), GLsizei(d!.numTriangleIndices[meshIndex]), GLenum(GL_UNSIGNED_SHORT), nil)
d!.numTriangleIndices[meshIndex] which is
numberOfMeshFaces * 3 is always
0 even though we are getting values for
numberOfMeshVertices in the range of
Can anyone shed some light on why this might be happening?