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 #33448 is a reply to message #33447] Thu, 02 January 2003 13:20 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.

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
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 19:53:30 PDT 2026

Total time taken to generate the page: 0.96558 seconds