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

Home » Public Forums » archive » Re: "Object Graphics and Vectors" Reloaded
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: "Object Graphics and Vectors" Reloaded [message #40440 is a reply to message #40313] Wed, 04 August 2004 10:28 Go to previous message
Ralf Schaa is currently offline  Ralf Schaa
Messages: 37
Registered: June 2001
Member
David Fanning wrote:

> ... who have lost *weeks* (perhaps *months*!) struggling with the same thing. :-)

okay, I thought 'well, before taking David's hint I give it a try
myself, this can't be soo hard ...'

This is what I have:
a nice 3d object plot in data-coordinates with all rangings from -2.5e4
to 2.5e4, so far so good.
Now I add a vector with Rick Towler's vector object, which needs as
input a 'location' (the startpoint of the vector) and a 'magnitude' (the
endpoint), these are defined in normalized coordinates.
Okay, all i have to do is give the location and the magnitude in values
which are near my ranging-values, actually I calculated them with the
formula taking from the idl help:

NormX = -range[0]/(range[1]-range[0]) + 1/(range[1]-range[0]) * DataX

I need the other way round:

DataX = NormX * ((range[1]-range[0])) + range[0]

e.g a vector in normalized coordinates from [0,0,0] to [1,1,1]
would be in datacoordinates
from [range[0],range[0],range[0]]
to [3*range[1],3*range[1],3*range[1]]

but nothing exciting happened ...

so where is my bug ?

Cheers
-Ralf
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Displaying fluid flow in porous medium
Next Topic: problems with passing structures around in gui widgets

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

Current Time: Sat Oct 11 15:09:14 PDT 2025

Total time taken to generate the page: 0.16380 seconds