View Full Version : Conversion of STL file to IGES through OpenGL....

12-11-2008, 05:13 AM
Hi all
I need your help regarding conversion of STL file to IGES....
I am able to view both ASCII and Binary STL files in STLViewer software.Now I have GLSURFACE data as intermediate data.Through the intermediate data I need to convert into IGES format.

Can anybody help me in sugesting any OpenGL libraries to do file conversion(from GLSURFACE to IGES).I hope you know this and you will help me.

I am always waiting for your sugestions...

Thanks and Regards

12-12-2008, 11:04 PM
OpenGL is a low level specification and API for creating 2D & 3D graphics, so your question is not directly related to OpenGL. One can of course write a "Viewer" Software using OpenGL, to open files in various formats (STL, IGES etc.) and display 2D/3D object(s).

You need a software to convert a STL file to IGES file. A typical CAD software (Pro/E, Solidworks) should be able to import a STL file and export an equivalent IGES file. Other option is to write a program to read STL file, store it into suitable structures (Point, Triangle etc.) and print out equivalent IGES file.

Below link should be a good starting point:

Understand IGES format might take some time, but there should be some document explaining it on the Internet.

Also see:

12-14-2008, 11:38 PM
Thanks fr giving reply....

If you have some sample code to convert from STL to IGES,please send me the code to suman.gorla@gmail.com or provide some more guidance regrding it...

I'm always waiting for your suggestions..

Thanks in Advance...