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 › How to draw polygon in 3D
Page Index Toggle Pages: 1
How to draw polygon in 3D? (Read 1422 times)
How to draw polygon in 3D?
Feb 3rd, 2010, 5:17pm
 
Hi, I'm very new to 3D processing. I would like to draw a polygon on the y and z axis but can't figure it out.  Can anyone help me?

thank you!!!
     
Re: How to draw polygon in 3D?
Reply #1 - Feb 4th, 2010, 12:38am
 
Hi there, to draw a polygon you need to use the following

Code:
beginShape();
vertex(_x, _y, _z);
vertex(_x, _y, _z);
....
endShape();


For more info check the Reference
http://processing.org/reference/beginShape_.html

Hope that helps
rS
Re: How to draw polygon in 3D?
Reply #2 - Feb 4th, 2010, 4:18pm
 
Thank you so much! That helps a lot!
sdotjo
Page Index Toggle Pages: 1