Hi,
 
If speed is not a concern, you can always do something like the pseudocode below.
 
loop theta = 0 to 2 * pi
{
   x = xcenter + radius * cos(theta);
   y = ycanter + radius * sin(theta);
   plot(x,y);
}
 
Is speed is a concern, you should use Bresenham's line scan conversion algorithm adapted for circles.  The details of this can be found in alot of computer graphics books.  I know for a fact the book called Computer Graphics with OpenGL by Hearn and Baker discusses it.  Good luck!
 
Brian
-----Original Message-----
From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]On Behalf Of hterrolle
Sent: Thursday, May 20, 2004 2:49 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] nedd help for algorhytme

Hi,
 
I need an algorythme that will allow me to make a circle of object.
 
example :
                       
                        5   
                 6              4
 
            7                         3
 
               8                2
                        1    
 
thanks a lot. because i am not so good in geometrie.   
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to