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
export 3d-file (Read 610 times)
export 3d-file
Jul 8th, 2008, 5:50pm
 
hi dears,

I`d like to export a 3d-shape, as a file-format that I can open with blender, c4d, 3dmax, or something else.
The tricky thing is, that the shape is randomed.
I guess I should could store the vertex-points in a variable
and rebuilt it with an 3d-prog, but that doesn`t work for more complex shapes - which I need in the end.
(..code is not the final work - just example)

briefly spoken: on mouseclick, the current shape should be exported/saved as 3d-file.
could that work? or do I to try tricks?

thanx, also you have to tell me, thats not possible.


void setup(){
 size(300,300, P3D);
}
void draw(){
 camera(mouseX, mouseY, 220.0,
        0.0, 0.0, 0.0,
        0.0, 1.0, 0.0);
 int x=int(random(300));
 int y=int(random(300));
 int z=int(random(300));
noStroke();
 fill(200,200,10);
 beginShape();
 vertex(x, x,y);
 vertex(z, x,z);
 vertex(z, z,y);
 vertex(z/2, z,y);
 vertex(z, z,y);
 endShape();
}
Re: export 3d-file
Reply #1 - Jul 8th, 2008, 6:10pm
 
See: http://processing.org/reference/libraries/dxf/index.html
Re: export 3d-file
Reply #2 - Jul 8th, 2008, 6:25pm
 
...once more impressed by procc and your guys help!
Page Index Toggle Pages: 1