[vtkusers] selective scaling in vtkAssembly

Dean Inglis dean.inglis at camris.ca
Mon Mar 19 13:56:05 EDT 2007


I have an assembly made of actors 
defined on a unit length scale (0-1)
which are then scaled up to the size they
need to be in the world.  However, I want
one of the actors to have a different X scale
factor.  e.g.:

actor1->SetScale(x1,y1,z1);
actor2->SetScale(x2,y2,z2);
...
actorN->SetScale(xN,yN,zN);

assembly->SetScale(wx, wy, wz)

but for only actor2, I want the assembly to
apply a scale

assembly->SetScale(wx_different, wy, wz)

Any ideas on how to do this?

thanks,
Dean



More information about the vtkusers mailing list