DXF is rather simple, and it has the added benefit of being builtin to blender…
I have the spec around here somewhere…
/me goes fishing
I’ve got a program which writes the barebones of an object to dxf, but I’m sure blender puts extra data in there too, so it’ll need a bit of parsing, but no more than any other format you could think of
the first thing to note is that the lines in a dxf file come in pairs: the first line is a number, the second line is the data. The number specifies what kind of data it is - eg the x co-ordinate of a point might be
10
134.2
the 10 meaning “x co-ordinate” and the 134.2 being the co-ordinate itself.
Writing a DXF File
This is enough information for blender to load a DXF:
the fourth vertex can be omitted to have a tri face.
The vert numbers are indexes into the list of verts, the first vert is 1, the secnd is 2, etc
No that’s not a typo, the face does start with “VERTEX” - please don’t ask me why.
To read a DXF produced by blender you’d presumably read using that format, ignoring any lines that have a data type not used here - but I haven’t tried it myself.