We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › Import .DXF file into Processing
Page Index Toggle Pages: 1
Import .DXF file into Processing (Read 981 times)
Import .DXF file into Processing
Jan 23rd, 2009, 11:38am
 
I have been looking for information about this for a while now, and I can hardly find anything about importing files into Processing.
The problem is that I want to be able to import a 'simple' .dxf file (only points and lines) into Processing.

Q1. Is it possible to import .dxf and show the model?
Q2. If Q1 is negative, is it possible to make a textfile with the coordinates of the .dxf points and lines, and by importing this textfile, what is the script to make points of these coordinates?

Thanks in advance...
Re: Import .DXF file into Processing
Reply #1 - Jan 23rd, 2009, 2:48pm
 
You could convert the DXF to one of the other supported 3d-files. I.e. OBJ files.
Or you can read up on DXF (http://en.wikipedia.org/wiki/AutoCAD_DXF), and create a library for Processing, and then share with all of us Smiley

Not really any way you can convert it into a point-textfile, but if you could, you could then read that text-file, and draw all the points / lines

-seltar
Re: Import .DXF file into Processing
Reply #2 - Jan 23rd, 2009, 5:29pm
 
Ok, I got it working to convert a model into .OBJ and load it into Processing.

Next step: is there a possibility to 'use'/obtain the coordinates of the lines in the imported .OBJ model?
Page Index Toggle Pages: 1