comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Beginner Question: PlotS rasterization info?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Beginner Question: PlotS rasterization info? [message #27800 is a reply to message #27794] Wed, 07 November 2001 11:03 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
sandy <sehgal@oasis.rad.upenn.edu> writes:

> When PlotS or Plot rasterizes straight lines between endpoints/vertices,
> what's the best way to get the coordinates of all the points
> interpolated? Surely this information is stored somewhere. Can I get
> these coordinates without actually plotting anything to the screen? I
> tried a Bresenham algorithm, but it doesn't return exactly the same
> interpolated points as PlotS--there appears to be some sort of roundoff
> difference. Any help would be appreciated, since currently I'm
> resorting to the roundabout and no doubt inefficient method of plotting
> to a pixmap, TVRD-ing, and then WHERE-ing the screen-dumped array....

Greetings Ted (Sandy?)--

If it's really important to you to have exactly the same pixels on the
screen and in your array, then probably your pixmap/WHERE approach is
the most reliable.

If you already have the Bresenham algorithm coded, then what reason is
there to use PLOTS? In other words, why not plot the pixel values you
determined from the Bresenham, and then you can be sure you know them
exactly?

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: PlotS rasterization info update
Next Topic: Re: IDL 5.5 help file

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:56:18 PDT 2025

Total time taken to generate the page: 0.00413 seconds