[vtkusers] scaling made as a translation

David Doria daviddoria+vtk at gmail.com
Tue Feb 23 14:49:58 EST 2010


On Tue, Feb 23, 2010 at 1:16 PM, Giancarlo Amati <ilferraresebono at hotmail.it
> wrote:

>  Hello Vtks! :)
>
> I'm not getting this problem:
>
> I've a vtkPlaneSource which by default is in the origine.
> now... I call the SetScale(2) to double it's size but dunno why it
> translates instead of keeping the position and getting bigger.
> So I thought to do it manually by defining a vtkMatrix4x4, and passing this
> matrix to the SetUserMatrix of the actor.
> but again, the same result?
>
> what's wrong with me?
>
> Thanks.
> Giancarlo
>
>
What did you call SetScale on? Are you trying to actually transform the
data? Or just the appearance on the screen?

When you have small problems like this, it really helps if you can post some
example (compilable) code so we can take a look at what is actually going
on.

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100223/b8c91e3e/attachment.htm>


More information about the vtkusers mailing list