I´m using the Mesh class in my application, since it affords me some nice features at no cost
However i need to do some calculations on the vertices and therefore I need to pull them out of the Mesh object. I use simple Lock functions on the objects Index- and Vertexbuffer and using a for-loop I run through the indexbuffer using the values to take out vertices of vertexbuffer (3 indices per triangle). This straightforward method works splendidly on the standard Mesh.Box, Mesh.Sphere etc. but when I try to use it on a Mesh.FromFile object it fails. The vertices seem fine, but the indices are wrong. Anyone know why this is ? When I do my reading I assume that the only primitive in the buffer is Triangles, could that be my problem ?











