I wrote a custom parser for
.blend files using some of the info found here. I can read the structs inside the file, one of these is a
Mesh and I would like to render that mesh in my application. I'm having trouble figuring out what to read from this
I found two properties:
medge, the first is a list of vertices and the second a list of edges (an edge is a pair of indices to the first list.)
Theoretically this is all I need, but turning a list of edges into triangles for rendering seems non-trivial, the brute force solution is slow and I couldn't find another solution on the internet.
I also found the
mpoly property, it seems promising since its count is always the number of faces in the mesh, but I can't make sense of the properties (
totloop being the ones that seem more relevant.)
So my question is: which properties from the
Mesh struct should I read and is any of them a closer representation to triangles than just a list of edges?