Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!news.iastate.edu!niko From: niko@iastate.edu (Schuessler Nikolaus E) Newsgroups: comp.sys.mac.programmer Subject: Re: Bezier curves in QuickDraw Keywords: Bezier, Macintosh, Toolbox Message-ID: <1990Dec1.154652.19433@news.iastate.edu> Date: 1 Dec 90 15:46:52 GMT References: <1990Nov29.181603.18132@maths.tcd.ie> Sender: news@news.iastate.edu (USENET News System) Organization: Iowa State University, Ames, IA Lines: 36 In article <1990Nov29.181603.18132@maths.tcd.ie> tim@maths.tcd.ie (Timothy Murphy) writes: >Is there a routine anywhere in QuickDraw, >or elsewhere in the Toolbox, >for drawing Bezier curves? > I don't think so. >If not, does anyone have a routine for doing this? There is a demo program that does it... who ever wrote it might be willing to give out the source. I have a project due soon that is supposed to do exactly that. If you can grab a copy of the book "Computer Graphics: A programming approach" by Steven Harrington (ISBN 0-07-026751-0) it gives you pseudo code that can be directly converted to pascal code (and adjusted slightly for C). >Is it best to approximate the curve by a polygon, >or to determine the actual pixels? If you make the polygon's sides smaller and smaller until they're the size of a pixel you won't be able to tell that it's a polygon. > >Any suggestions gratefully received. > You're welcome. -- ------------------------------------------------------------------------------ Niko Schuessler "On a two semester mission to engineer where niko@iastate.edu no-one has engineered before.... :-) " ------------------------------------------------------------------------------