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

Home » Public Forums » archive » Re: IDLgrPoly[line|gon] and cv_coord
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: IDLgrPoly[line|gon] and cv_coord [message #33494 is a reply to message #33492] Wed, 08 January 2003 05:23 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Thomas Gutzler (tgutzler@ee.uwa.edu.au) writes:

> I used to scale every Object to have max 2 Units in each dimension and
> translating it to have 0/0/0 in its center because I discovered that the
> visible area is only [-1..1] in each dimension. I tried to enlarge it
> but without any success. Did I miss something or is that the way to do
> it correctly?

I think you missed something. What you describe is
the default viewplane rectangle. It is certainly
not "wrong" to scale everything to it. It's just
that this particular coordinate system is not
always convenient.

If you are working with images of a particular
size, for example, it is sometimes convenient to
have an "image" coordinate system (0 to 512, say).
I often prefer to have a "normalized" coordinate
system of 0 to 1, since I am more familiar with
how to scale things into this coordinate system
than one that goes from -1 to 1.

The thing about object graphics is, you can do
whatever you like and whatever is convenient for
the problem at hand. But, if you are like me, I
find all of this terribly confusing, and it took
me literally weeks before I could get the components
of a line plot (axes, titles, the line plot itself)
with all the bits showing up in the proper relationship
to one another.

That's why I wrote the NORMALIZE function. That little
guy, which you see in every object graphics program I've
ever written, is magical. It just seems to *know* how
to put things where they need to go. I'm sure I couldn't
write an object graphics program without it, Ronn Kling's
excellent book on the subject not withstanding. :-)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Chance for a Million! Was: Penis Enlargement
Next Topic: IDLgrPoly[line|gon] and cv_coord

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

Current Time: Wed Oct 08 18:40:57 PDT 2025

Total time taken to generate the page: 0.00546 seconds