Path: utzoo!attcan!uunet!snorkelwacker!apple!agate!usenet From: deadman@garnet.berkeley.edu (Ben Haller) Newsgroups: comp.sys.mac.programmer Subject: Re: Bezier Curves Message-ID: <1990Sep29.052258.14950@agate.berkeley.edu> Date: 29 Sep 90 05:22:58 GMT Sender: usenet@agate.berkeley.edu (USENET Administrator) Organization: Stick Software Lines: 24 In <1990Sep28.162954.28535@midway.uchicago.edu>, amun@quads.uchicago.edu (james frederick amundson) writes: > I need to make a screen representation of the bezier curves > Can someone out there either: > a) show me the mathematical description of a bezier curve > or > b) show me some code that does this? > I'm not terribly picky about the language... Well, as to point a), the PostScript Language Reference has the formulas on page 150, the curveto operator (this is in the Red Book). It refers to Foley & Van Dam at the bottom of the page for more material, and indeed this is the place to go for more detail. J.D.Foley and A.Van Dam, "Fundamentals of Interactive Computer Graphics", Chapter 13.5 : Parametric Cubic Curves, pp. 514-523. As to point b), I refer you to MacTutor, Vol. 5 No. 1, January 1989, in the C Workshop : "Bezier Curve Ahead!". This is C code using Fixed point math to find points. It is well written, clear and concise. There is no substitute for a good reference library... -Ben Haller (deadman@garnet.berkeley.edu) "Gadji beri bimba clandridi lauli lonni cadori gadjam..." - I Zimbra