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 & HelpSyntax Questions › Creating a 3d shape from a 2d vertex shape
Page Index Toggle Pages: 1
Creating a 3d shape from a 2d vertex shape (Read 173 times)
Creating a 3d shape from a 2d vertex shape
Mar 7th, 2009, 11:32am
 
Hey,

I have a 2d shape that is made up of vertexes. I want to rotate it at the center Y axis so it becomes a 3d shape. I have no idea how to do that. The coords for the vertex points are stored in arrays. I guess I either need to convert them to lines or something. I'm really stuck with this.

Please help!

Thanks,

Ivan
Re: Creating a 3d shape from a 2d vertex shape
Reply #1 - Mar 7th, 2009, 11:23pm
 
surfaceLib has a class for rotational solids(http://eskimoblood.de/surfacelib/rotationalsolid_class_rotationalsolid.htm), maybe this is whta your looking for.
Page Index Toggle Pages: 1