PDA

View Full Version : Circle in 3D space



Anish
08-17-2005, 04:55 AM
hi all,

Can any one help me to draw a circle in 3D space.

thanks,
anish

08-17-2005, 05:08 AM
fast idea, draw a lot of points or small lines.

jide
08-17-2005, 01:17 PM
Draw your circle on one of the planes ((x,y) or (x,z) or (y,z)). Then you'll be able to use glTranslate and glRotate to move it.
For doing a circle, just approximate its vertices with a polygon (ex: dodecahedron with 12 edges). Needless to say, more you'll have edges and more it will look like a real circle.