Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!sun-barr!newstop!male!geraldo.Central.Sun.COM!texsun!csccat!larry From: larry@csccat.cs.com (Larry Spence) Newsgroups: comp.lang.postscript Subject: Re: SOLUTION! to Spline data/Bezier Curve problem Summary: The wheel re-invented, in FORTRAN Message-ID: <4324@csccat.cs.com> Date: 11 Jun 91 21:24:40 GMT References: <1991Jun3.095901.3793@desire.wright.edu> <1991Jun10.162302.3900@desire.wright.edu> Reply-To: larry@csccat.UUCP (Larry Spence) Organization: Computer Support Corporation. Dallas,Texas Lines: 25 In article <1991Jun10.162302.3900@desire.wright.edu> cse0080@desire.wright.edu writes: >In article <1991Jun3.095901.3793@desire.wright.edu>, I wrote: >> Help! >> >> I need to know how to generate spline curves in PostScript when >> all the data I have on hand is an array of data points that lie on >> the curve itself. (IE: no control points for the curveto operator) >> >> Anyone know a good way to do this? >> > [FORTRAN code (wince,shudder!) for interpolation deleted] I still suggest that anyone who wants to implement this go look at Farin's book. There are a number of well-known schemes for determining tangents and end conditions, no need to reinvent them! Also, drop those arctangents and just use the direction from the previous point to the next point. Will someone please whack his knuckles for posting FORTRAN here? %) %) -- Larry Spence larry@csccat.cs.com ....{uunet,texsun,cs.utexas.edu,decwrl}!csccat!larry