🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #2979

Precise alignment of rotated line segments

#2979
From: Jonathan Abbey
Date: Fri, 31 Aug 1990 18:17
27 lines
1914 bytes

I'm currently trying to render an axis at an arbitrary angle using
Adobe Illustrator with program generated instructions.  The problem is that
when I render a 45 degree axis, each individual tick will vary from a true
45 degree angle by up to 5 degrees, causing significant aliasing.  If
I render the axis vertically and use AI to rotate the figure precisely 45
degrees, the same effect occurs.  But if I modify the PostScript code to
include <45 rotate> after the state initialization it comes out looking fine.

Now, if I go into AI and zoom into the line, it continues to be aliased at
the very highest magnification, even though it should be a relatively straight
45 degree line.  If I grab the end point off the axis and twiddle with it,
I can get it into line, but a given line can be off the diagonal in either
direction.

I'm using a single double precision matrix transformation to translate, scale
and rotate the axis.  I tried snapping the points to the output device's
raster grid, with no significant difference in quality.

Any advice on how PostScript is doing it (transforming the entire line point
by point?) or how I might be able to get better results would be most welcome.


Jonathan Abbey (512) 472-2052        \                           (512) 835-3081
jonabbey@ccwf.cc.utexas.edu           \        broccol@csdfx8a.arlut.utexas.edu
The University of Texas at Austin      \          Applied Research Laboratories
Technical Details
Message-ID: <36667@ut-emx>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!rutgers!cs.utexas.edu!ut-emx!walt.cc.utexas.edu!jonabbey

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!rutgers!cs.utexas.edu!ut-emx!walt.cc.utexas.edu!jonabbey
From: jonabbey@walt.cc.utexas.edu (Jonathan Abbey)
Newsgroups: comp.lang.postscript
Subject: Precise alignment of rotated line segments
Message-ID: <36667@ut-emx>
Date: 31 Aug 90 18:17:10 GMT
Sender: news@ut-emx
Reply-To: jonabbey@walt.cc.utexas.edu (Jonathan Abbey)
Organization: The University of Texas at Austin, Austin, Texass
Lines: 27