View Full Version : STL/ DXF import source code?


giorgiocnc
03-06-2006, 10:18 AM
Hi everyone!

Does anyone have any open source library or source code for importing STL and/or DXF files. Maybe scaling/zooming? Thank you for the help:

Giorgiocnc

klick0
03-24-2006, 10:02 PM
Importing into what? There are many DXF library's to decode a DXF file, but you have to determine what you want to do with it. To interpret it as G-Code is a whole other story. Scaling and Zooming are quilt simple, I wouldn't worry about those. I have a DXF to G-Code interpretter that I have written, but by no means is it anything substaintial... it's very basic which accomodates my needs very well. I'd give it to your if you wanted, but i don't think it would be very useful to you.

Ross

giorgiocnc
03-27-2006, 12:58 AM
Thanks for the reply, klick0! I would like to write some measuring code for DXF's in Visual Basic/Visual C, and maybe visualization also with scaling/zooming. I don't really have a decription on DXF or STL files, all I want with them is import their data into some array's so I can handle it. Thanks again.

Giorgio

klick0
03-31-2006, 08:28 PM
I use dime:

http://www.coin3d.org/lib/dime/

It's an opensource dxf library... you can download it at: http://ftp.coin3d.org/coin/src/snapshots/dime-latest.tar.gz

Granted, i'm not sure how easily it could be used in Visual C, definatly not VB...

Or goto www.cygwin.com and get cygwin, you could install it into that and compile it fairly easily.

It has sample programs to show you how you would load the information into your own data structures.

Ross

giorgiocnc
03-31-2006, 09:11 PM
Ross, thank you very much for the info, I'll look into it.
Br,Giorgio

muthudivya
12-28-2007, 02:03 AM
if any one know to convert the DXF file format to CNC codes kindly give a solution for this.