DXF File Format

Miscellaneous Forums/General Discussion/DXF File Format

Has anyone ever tried to import a dxf file into blitz? I'm thinking of trying to do it for work project. I looked up the format specs but it's a little confusing. It's a text file, but I can't quite figure out all the data.

I don't need to import much, I just need the points and polys. I don't really care about render features like shaders or surface assignment. The resulting blitz geo will be used as a hidden ODE collision object.

I'm doing this because my target user is not likely to use any conversion programs to get to B3D or 3DS.

Well, you could just convert it first. Some of them are full of junk - text and stuff.

In fact, I wonder if converting it to 3DS (for example), then converting back to DXF will strip out all the junk? I think it might.

Puki, he want to read it directly.

Maybe read the spec file?
http://www.martinreddy.net/gfx/3d/DXF12.spec

And, using thrid party lib may be easier, you can wrap it into DLL and call it?
http://www.ribbonsoft.com/dxflib.html