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

Home » Public Forums » archive » Re: Question about rotate in 3D visualization
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Question about rotate in 3D visualization [message #42240] Fri, 14 January 2005 08:54
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
<ismxray@yahoo.com> wrote in message
news:1105675017.122783.122310@c13g2000cwb.googlegroups.com.. .
> I try to visualize a 3D data and following the help files like this:
> .....
> myviewer->Add,myModel
> myModel->Add,myVolume
> myModel->rotate,[1,1,1],50
> .....
> After a few steps, How could I rotate it back to the original states?

You could use the IDLgrModel::Reset method to go back to the identity
matrix, but then you would lose other transforms that you may have put
there, like scaling. If you do have other transforms, you could try putting
all but the rotation in one model, and then use another model just for the
rotations.

or

You could:
< set up graphics tree and set transforms >
myModel->GetProperty, TRANSFORM=t
myModel->Rotate,[1,1,1],50
myModel->Rotate,[1,1,1],50
myModel->Rotate,[1,1,1],50
myModel->Rotate,[1,1,1],50
myModel->Rotate,[1,1,1],50
myModel->Rotate,[1,1,1],50
myModel->Rotate,[1,1,1],50
myModel->Rotate,[1,1,1],50
myModel->SetProperty, TRANSFORM=t

to put you back to the state before doing the rotations.

Karl
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Elevation Shading
Next Topic: Data structures ??

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

Current Time: Wed Oct 08 19:58:06 PDT 2025

Total time taken to generate the page: 0.00287 seconds