Lazy@ifi.uio.no (05/29/90)
Is it possible for a window (under NeWS 1.1) to have a non-evenly-spaced scale ? Something like a mercator map projection ? Have someone written such a scale-function ? Lasse Bjerde lazy@ifi.uio.no Department of Informatics University of Oslo, Norway
naughton@wind.Eng.Sun.COM (Patrick Naughton) (06/02/90)
In article <CMM.0.88.643997845.lazy@haar.uio.no>, Lazy@ifi.uio.no writes: |> |> Is it possible for a window (under NeWS 1.1) to have a |> non-evenly-spaced scale ? Something like a mercator |> map projection ? |> |> Have someone written such a scale-function ? Transformations in NeWS and PostScript are linear, thus this is impossible. |> |> Lasse Bjerde lazy@ifi.uio.no |> Department of Informatics |> University of Oslo, Norway ______________________________________________________________________ Patrick J. Naughton ARPA: naughton@sun.com Window Systems Group UUCP: ...!sun!naughton Sun Microsystems, Inc. AT&T: (415) 336 - 1080
uad1077@dircon.uucp (06/06/90)
Actually, you can do it, depending on your PostScript interpreter. If
you have a procedure like
x1 y1 xfm => x2 y2
(which is the case for most useful non-linear transformations) then you
can just shovel everything through `pathforall'. (well, everything except
text, that is!)
On my laser printer, pathforall just appends any new points I add to the
path to the one I'm trying to distort, so it goes very quiet, and then
after a few minutes I get a limitcheck...
On my window manager, pathforall goes through the same code that `stroke'
does though, so it actually produces a finite path, and has the desired
effect.
I think it's a case of taking pot luck (and your courage in both hands)
if you want to try it on NeWS...
Interesting question: basically this is the 2D ananlogue of the way that
Renderman achieves non-linear transformations. DO I treat the departure
of my PostScript from true POstScript which allows this to happen as a
bug or an enhancement? :-)
"Computer oxymorons #1: operating system"
--
Ian D. Kemmish Tel. +44 767 601 361
18 Durham Close uad1077@dircon.UUCP
Biggleswade ukc!dircon!uad1077
Beds SG18 8HZ United Kingdom