We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have drawn the 3D cylinder in Processing based on http://vormplus.be/blog/article/drawing-a-cylinder-with-processing. i have to move/rotate the cylinder but only one face should rotate just like pendulum (top is always fixed and bottom is moving).. similarly my bottom face of the 3D cylinder should move and top face should be fixed. How to do that?
Answers
you need to place the point that needs to be fixed (top face) on the origin (0,0)
then use rotateZ(angleZ); and translate(width/2,height/2);
before setup():
and then at the end of draw()