Jump to content

interfacing .dxf with opengl


Recommended Posts

Posted

Hello,

 

I am new to the AutoCAD topic and hopefully thus have picked the correct forum. I need to understand how 3d models are stored in the dxf. file format. Besides, my main concern is, I want to visualize AutoCAD data from a .dxf file in opengl.

 

Since I have no idea about the AutoCAD side of this - I'm an experienced programmer though - I'd like to know in what way to approach this problem best.

 

Is there any way to achieve this by extracting the necessary data? Or via another file format?

 

I know there are file converters for .dxf data I just don't know how reliable/efficient they are.

 

Any start on this helps!

Posted

Welcome in the forum!

 

In a new drawing put a point and save the document in DXF format. Open it with Notepad and see what it contains. Now draw a line and repeat as above. (the end of the file is more relevant).

When you get tired, go to the AutoDesk home page and read about the DXF codes.

As a side note: it is simple to describe the points, lines, polylines and even surfaces. But I would stay apart from solids.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...