Q: vtkAssembly and Rotation?

John Biddiscombe j.biddiscombe at rl.ac.uk
Fri Sep 3 09:36:24 EDT 1999


1) remove the actors from renderer
2) add the actors to assembly
3) assembly->Setposition assembly->SetOrientation
4) add assembly to renderer
5) use assembly property SetVisible(true/false) to toggle when rotating if
you don't want to see it.
6) check what I've written works as it's a while since I did this.

John B

>i want to rotate a group of some vtkActors.
>
>1)	add the vtkActors to an vtkAssembly.
>2)	remove the vtkActors from the renderer ( i dont want to see them
>while rotating )
>3)	set the origin of this assembly to the middle of the bounding box
>4)	rotate the assembly
>5)	remove all vtkActors from the assembly an add them to the Renderer (
>i want to see them again )
>
>These actors have their original position an orientation and not the
>position and orientation of the rotated Assembly.
>
>What do i do wrong ? Can somebody help me with this problem?
>
>Harald Lübeck
>
>GFT Technologies AG
>Leopoldstr 1
>78112 St. Georgen
>
>E-Mail:	hlk at gft.de
>WWW	http://www.gft.de 
>	http://www.internetprofi.com
>
>
>
>-----------------------------------------------------------------------------
>This is the private VTK discussion list.  Please keep messages on-topic.
>Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
>To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
><majordomo at gsao.med.ge.com>.  For help, send message body containing
>"info vtkusers" to the same address.     Live long and prosper.
>-----------------------------------------------------------------------------
>
>


-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list