I’m writing a simple export script to export mesh data in a custom format. The issue I have is that I need all faces to be triangles in my custom format, but blender can store faces as quads (not sure if n-gons are supported). I would like my export script to
- copy the mesh data to some temporary mesh
- triangulate that temp mesh
- export with the temp mesh
- delete the temp mesh
I was wondering if someone could help me out with the best way to create a copy of the mesh data mess around with without dirtying the scene being exported?
temp = meshToExport.duplicate()
temp.triangulate() (i’ve noticed there’s a bpy.ops.mesh.quads_convert_to_tris() command)
…do my stuff…
Thanks for your help!