FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   how to describe 3d polygons?
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: how to describe 3d polygons?  (Read 218 times)
lunetta

7200475272004752 WWW Email
how to describe 3d polygons?
« on: Nov 22nd, 2004, 6:04pm »

Hi
 
I'm looking for resources/references explaining how to describe  polygons in 3D space;
 
For example: If I want to draw a solid rectangle, I can build a shape like this:
 
beginShape(POLYGON);
vertex(0,0);
vertex(10,0);
vertex(10,10);
vertex (0,10);
endShape();
 
 
But if I want to describe a solid cube, for example, how should I proceed? And when I increase the complexity for other solids?  
In this rectangle case, each vertex connects two lines; how should be the description so a vertex connects 3 (or more) lines?
What's the correct order (if any) for the description?
 
If anyone knows pages with this kind of information, I'm grateful for sharing them...
 
Pages: 1 

« Previous topic | Next topic »