The format I am exporting to only supports triangles.
Is there a way to turn quads into triangles from an export script.
This is so I can model with quads, and export into triangles.
The format I am exporting to only supports triangles.
Is there a way to turn quads into triangles from an export script.
This is so I can model with quads, and export into triangles.
No.
You have to write your own functions.
now if you could only do the reverse,
Isn’t it possible to invoke the manual process <F> - <SELECT ALL FACE> - <TAB> - <CTRL-T> (covert everything to triangles) via python?
I believe it was possible with the mesh module, but it shouldn’t be very hard in python.
Simply remove vertex 3 (the 4th vertex) from the quad face, and create a new face that uses verticies 0 2 and 3 (in that order, from the original quad) with the same material as your original. Don’t to forget to copy the vertex colors and uv coordinates if they exist.
(I am too lazy to write it for you, but later I will have to use a better method myself for a script that will only work with triangle meshes)