🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.postscript.programming
Article #336

Re: creating a smooth line of xy plot graph.

#336
From: Miklos_Somogyi
Date: Wed, 11 Aug 2004 02:14
18 lines
1602 bytes
Yeah, at the beginning of the file you find:

... subspline 1 1 n 3 sub { /i exch def 1 sub ... } for

Here subspline leaves nothing on the stack, the "/i exch def" consumes the cycle variable, so there is nothing on the stack to subtract 1 from.

Without comments it is some work to de-cypher what the program does.
Perhaps it would be easier to do something from scratch.

A (parametric) cubic spline goes through all of its given points with
no furher points in-between, a Bezier curve needs two more control
points. One can conjure up many schemes to automatically generate these control points, and some of them could look ok some of the time.
At other times they could generate overshoots and other undesirables.

Probably it would not take much more time to write a routine to generate parametric cubic splines than it would take to tinker with
Beziers to force them to do something they were not designed to do.

Miklos
Technical Details
Message-ID: <3bb55278.5@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <3bb55278.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10c61a,2c21fe01d2299212
X-Google-Attributes: gid10c61a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Miklos_Somogyi@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.postscript.programming
Subject: Re: creating a smooth line of xy plot graph.
Message-ID: <3bb55278.5@webx.la2eafNXanI>
Date: Tue, 10 Aug 2004 19:14:04 -0700
References: <3bb55278.-1@webx.la2eafNXanI>
Lines: 21
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit