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.
Page Index Toggle Pages: 1
rapid prototyping (Read 624 times)
rapid prototyping
Mar 10th, 2009, 8:08am
 
Hi
I want to create a 3d object that will be affected my inputs from the arduino. I then would want to export the generated 3d object into a 3d program to be able to rapid prototype it. is it possible to export it in any way? if so, to what 3d program?

thanks for the help

Re: rapid prototyping
Reply #1 - Mar 10th, 2009, 8:54am
 
I think an easy format to export to is .obj, and it's a widely supported format among 3d modeling applications.

From what I know about rapid prototyping, you might need to import the .obj into AutoCAD or some CAD software.
Re: rapid prototyping
Reply #2 - Mar 11th, 2009, 6:00pm
 
Thank you very much. Would I have to use a certain library to export an .obj file? I clearly have no idea what I am doing...
Re: rapid prototyping
Reply #3 - Mar 15th, 2009, 12:40pm
 
It should be relatively easy for you to export to .obj format without a library.

To make a basic .obj file, output each of your vertices in the form: v X Y Z
After outputting all of your vertices to the file,
for each face output a line in the form:
f vert1 vert2 vert3 etc.

The example below is a cube exported from blender to the .obj format:
Code:

# Blender3D v248 OBJ File:
# www.blender3d.org
mtllib cube.mtl
v 1.472368 3.441291 1.752435
v 1.472368 3.441291 3.752434
v -0.527632 3.441291 3.752434
v -0.527631 3.441291 1.752434
v 1.472369 5.441291 1.752435
v 1.472368 5.441291 3.752435
v -0.527632 5.441291 3.752434
v -0.527632 5.441291 1.752434
usemtl Material
s off
f 1 2 3 4
f 5 8 7 6
f 1 5 6 2
f 2 6 7 3
f 3 7 8 4
f 5 1 4 8


There's a lot of documentation on the web about this format, if you need a more detailed tutorial.

With that said, I'm sure you can find a library somewhere that handles .obj.
Page Index Toggle Pages: 1