[vtkusers] why does Scale method of vtkTransform have no effect?

Andrew Maclean andrew.amaclean at gmail.com
Tue Oct 2 23:44:09 EDT 2007


It looks like you have scaled everything equally. When you render the
initial view will be set to show all the actors. S you will not see the
effect. Try something like tf->Scale(5, 1, 0.5);



On 10/3/07, jim yu <long353 at msn.com> wrote:

> hi, everyone
>
> here is the code, but the Scale doesn't have effect, why?
>
> vtkTransform* tf = vtkTransform::New();
>  tf->Scale(5, 5, 5);
>  tf->RotateX(-45);
>  tf->RotateZ(45);
>  actor->SetUserTransform(tf);
>  outlineactor->SetUserTransform(tf);
>
> thanks a lot!
>
> jim
>
> ------------------------------
> Get news, entertainment and everything you care about at Live.com<http://live.com/>.
> Check it out! <http://www.live.com/getstarted.aspx+>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>


-- 
___________________________________________
Andrew J. P. Maclean
Centre for Autonomous Systems
The Rose Street Building J04
The University of Sydney  2006  NSW
AUSTRALIA
Ph: +61 2 9351 3283
Fax: +61 2 9351 7474
URL: http://www.acfr.usyd.edu.au/
___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20071003/8d256ae8/attachment.htm>


More information about the vtkusers mailing list