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 & HelpPrograms › vertices of sphere()-function
Page Index Toggle Pages: 1
vertices of sphere()-function (Read 649 times)
vertices of sphere()-function
Nov 25th, 2007, 3:05pm
 
Hey,
is there any posibility to get the coordinates of the vertices from the sphere()-function?
This coordinates I would like to know in order to calculate with it.
Re: vertices of sphere()-function
Reply #1 - Nov 29th, 2007, 7:48am
 
Hi, have a look at the source code :
http://dev.processing.org/source/index.cgi/

To find out how Processing calculates the vertexes of a sphere, see file PGraphics3D.java and its methods sphereDetail() and sphere().
Re: vertices of sphere()-function
Reply #2 - Nov 29th, 2007, 2:18pm
 
The surfaceLib library has the method coords () which gives you all the coordinates from your choosen surface.
Re: vertices of sphere()-function
Reply #3 - Nov 30th, 2007, 4:33pm
 
antiplastik, I'm sorry, but I'm lost in this forrest of folders.
Could you give me the link or the revision number to this PGraphics3D.java class?
Re: vertices of sphere()-function
Reply #4 - Nov 30th, 2007, 4:58pm
 
http://dev.processing.org/source/index.cgi/trunk/processing/core/src/processing/core/PGraphics3D.java?view=markup
Page Index Toggle Pages: 1