I have an exporter where I previously create a mesh copy of the data taken from a original mesh, this last one can contain triangles and/or quads.
The copied mesh, checks up for the faces to convert all to triangles. I know how to do this procedure for a Mesh type, but reading the documentation for the 2.63 API it's recommended to use the BMesh instead, i try to apply the same procedure of transforming quads to triangles, but it doesn't look there is a method to do that, the operation
looks valid only for Mesh types.
Can this be done for BMesh? How would be that?
May be you want to apply a decimate with no simplification?
|donato wrote: |
|May be you want to apply a decimate with no simplification? |
Not really, the proccess described above is to export to a format for an engine am developing. The Decimate Modifier looks useful, but no idea how would i benefit it to convert quads to traingles. I don't want to simplify the mesh, it will actually increment the number of faces in case quads are found, those will be converted to tris. But maybe am missing something, you can elabored a bit more if that's so. Thanks!
remember that bmesh is actually n sided polygons, not just quads.
maybe you're better if sticking with a blender release not supporting it.
as for the decimate, with no simplification it triangulates every face.
With BMesh, a Mesh object now has a tessfaces field, which gives you a representation of faces out of triangles and quads.