Blender's OBJ exporter has a main loop that iterates over object mesh polygons, rather than using Bmesh. I have added a customer integer data layer to an object's Bmesh and now want to access it during OBJ export, at the point where I have a mesh polygon. Can I use some index of the polygon to look up the Bmesh face?
This would also work if the face ordering within mesh and Bmesh are identical. But I've not read anything indicating this.
From what I've read, you can't access custom data layers via the old mesh API but if this is possible, that would be a satisfactory alternative.