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

Home » Public Forums » archive » Re: 3d matrix rotation
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: 3d matrix rotation [message #33447 is a reply to message #33437] Thu, 02 January 2003 15:56 Go to previous messageGo to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"David Fanning" <david@dfanning.com> wrote...
> New2IDL (biomedthesis2002@yahoo.com) writes:
>
>> I'm trying to rotate a 3D matrix using trackball. I have a 3D matrix
>> of size 512x512x25. Hwn i try to rotate it, the matrix stretches along
>> Z-axis. Hwn displayed the image is perfectly fine. Can anybody explain
>> why that happens and what can be done to fix it. When i tried a
>> dataset from the example (head.dat) for the same code, the rotation
>> takes place without any stretch.
>
> Sounds to me like you are applying the transformation matrix
> to the data itself, rather than to the model that holds
> the data. Apply the transformation to the model.

If all you wish to do is to visualize your data then as David is hinting you
may want to create an IDLgrVolume object with your data, place that into a
IDLgrModel object and then apply the transform from your trackball to the
IDLgrModel transform.

If you have a reason to apply the transform directly to your data then look
for differences between your data set and head.dat (which you said
transforms correctly). It is hard to say much more since your posting is a
bit vague. You say the matrix stretches along the Z-axis but then you say
the image is "perfectly fine". What image?

-Rick
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: About Mars, the "Greenish" Planet.
Next Topic: How can I plot in color?

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

Current Time: Sun Apr 26 18:58:49 PDT 2026

Total time taken to generate the page: 2.00288 seconds