PDA

View Full Version : How to draw an Arc?



talyrond
12-11-2005, 12:40 PM
Hi all, I am new to openGL having only used GDI+ before. It appears that the way to draw an Arc is to break it up in small line segments, is this the correct way?
May be there is a method that I have missed, I am programming a 3D cad system.

Cheers

Talyrond.

mikael_aronsson
12-12-2005, 01:06 AM
Hi !

OpenGL does not have support for circles or arcs, even though GLU has some support for disks and so on.

One way is as you say to break it up in smaller line segments yourself, and if you just want an arc that is probably the best way, another way is to use the bezier/spline curves in GLU to render your arc.

Mikael

talyrond
12-12-2005, 05:33 AM
Thanks for clearing up this situation

talyrond