Open SergeyBaryshev opened 5 years ago
I know that the importer does not support polygons. Your point of interest are functions "Read_Faces" and "Read_Triangles".
so you want someone to take assimp parser and modify it using your "Read_Faces" as a reference?
assuming obj (and dae) only comes with convex polys it should be not that hard to code even without the reference - why don't you yourself do it and submit the PR?
so you want someone to take assimp parser and modify it using your "Read_Faces" as a reference?
Exactly!
why don't you yourself do it and submit the
Because I don't know C++, my level of C++ reading is pretty low, not to mention programming.
I just want to help, at least by mathematics and logic of decomposition of polygons into triangles.
To test this thing, I ran a Blender and added a simple cylinder to the scene by default. Then I chose export to Wavefront OBJ and unchecked "Triangulate Faces" in the settings. The result is a crumpled cylinder. I know that the importer does not support polygons. Before I switched to Assimp, I wrote my own parser that supported not only triangulated geometry. So I offer you an easy solution to this problem. I am attaching the source code of my OBJ loader. Programming language VB.NET (VS Community 2017), math and render is SharpDX (not include). Btw, i'm using AssimpNet Wrapper (with PostProcessSteps.Triangulate), but problem is not in it.
Your point of interest are functions "Read_Faces" and "Read_Triangles".
Import.OBJ.zip