PDA

View Full Version : how to draw triangle mesh?



newer
05-12-2008, 01:39 PM
well, i don't know how to solve this problem.
I need to read *.dxf file and get x,y,z coordinates of vertices.
I have done it. now i get some number of veritices (for example: pyramid 6 vertices). all of that are vertices of triangle becouse the model is store in dxf as triagle mesh. Now i don't know how to draw that triangle mesh in opengl.

please help me!

thnx,
newer.

147-2
05-16-2008, 03:34 PM
There are a lot of example programs out there that would help you, I typed "OpenGL dxf" in Google, and got a number of different options. The first one on the list was http://www.bearcave.com/dxf/ which seemed like a rather good option for you to check out.