[comp.sys.mac.programmer] QuickDraw puzzle: how can you frame ALL edges of an arc?

mikem@uhccux.uhcc.Hawaii.Edu (Mike Morton) (01/14/91)

Inside Macintosh (I-180) says "QuickDraw doesn't provide a routine for
drawing an outlined wedge of an oval."  FrameArc outlines only the curve
on the outside of a wedge, and doesn't draw the two radial lines which
connect the endpoints of the curve to the center of the oval.

I'm trying with only moderate success to draw the whole frame for an
arc, including both of these radial lines.  The straightforward approach
is to calculate the endpoints with trig, and draw the lines yourself.
But roundoff error, the asymmetry of the pen, and QuickDraw's rumored
imprecision in oval-drawing (some claim it favors esthetics over
exactness) add up to make things not always line up.

Things look even worse when this is superimposed over a FillArc call
(I'm trying to draw an arc with, say, a gray interior and black edge).
The interior peeks out "under" the edges in some cases.

Any suggestions on how to frame ALL the edges of an arc?  I very much
want this to look good, so I wouldn't object to complex or slow
solutions.  Please reply by email and I'll post a summary.

 -- Mike Morton // P.O. Box 11299, Honolulu, HI  96828, (808) 676-6966 HST
      Internet: mikem@uhccux.uhcc.hawaii.edu
    (anagrams): Mr. Machine Tool; Ethical Mormon; Chosen Immortal; etc.