Computer Graphics

Moderators: Sephiroth
Number of threads: 1263
Number of posts: 2665

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
I need an example of a DXF reading function Posted by onion on 12 May 1999 at 9:55 AM
has anybody got a DXF reading function and a way to<br>
simply display the drawn polygons on the screen?<br>
I dont need them to move or anything.<p>
//onion


Edit Report
Re: I need an example of a DXF reading function Posted by jack sotac on 21 Jun 1999 at 1:16 PM
: has anybody got a DXF reading function and a way to<br>
: simply display the drawn polygons on the screen?<br>
: I dont need them to move or anything.<p>
: //onion<br>
Actually its pretty easy to read DXF files if you know the file format. Basically its 4 XYZ coords that make up a triangle. The 4th coord is the same as the third coord?. This goes on and on until the whole object is built. The best way to figure them out is to open one up and look at it and experiment. I learned a DXF file of a box. Be sure to have a copy of all the codes of a DXF file handy.<br>
//This is an example of a sample DXF file<br>
//<br>
3DFACE //means a definition of a trianle follows<br>
8//read up on these code in a DXF file format DOC<br>
0__f10<br>
62<br>
0<br>
10 //the code means folling number is an X coord<br>
154.43199157<br>
20//folling is a Y coord<br>
39.62400054<br>
30//following is a Z coord<br>
1257.29992675<br>
11//another X coord (defining second vertex of triangle)<br>
145.28799438<br>
21<br>
2.03200006<br>
31<br>
1259.33203125<br>
12 //defining 3rd vertex<br>
148.33599853<br>
22<br>
35.55999755<br>
32<br>
1217.67602539<br>
13//defining 4th vertex (same as 3rd)<br>
148.33599853<br>
23<br>
35.55999755<br>
33<br>
1217.67602539<br>
0<br>
//goes on till file is finished<br>






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.