[vtkusers] problems when loading and rotating a VRML model
CAVALAN Aurélien
aurelien.cavalan at criltechnology.com
Thu Jun 15 10:43:01 EDT 2006
> Hello,
>
> I'm loading a VRML model with a vtkVRMLImporter.
>
> This last creates many actors, so i guess that in order to rotate my model about the 'X' axis, I have to rotate each actor.
>
> When trying to rotate it, it appears that all the model "explodes" : all the structure doesn't rotate the same way.
>
> Here's my code (TCL) :
>
>
> set acteurs [$renderer3D GetActors]
>
> $acteurs InitTraversal
>
> for {set act [$acteurs GetNextActor]} {$act != ""} {set act [$acteurs GetNextActor]} {
>
> $act RotateWXYZ 90 1 0 0
>
> }
>
>
> Thank you for your help,
>
> Aurélien Cavalan
More information about the vtkusers
mailing list