[vtkusers] Actor scaling

joaoroberto88 joaorobertojr88 at gmail.com
Fri Jan 8 14:21:26 EST 2016


Hi VTK Users,

Maybe this is a newbie question, but here it goes. I'm rendering a
vtkPolyData in the screen with aprox. dimensions (1, 39, 0.00001, 0.001).
How can I fit it (both vertical and horizontal) to my rendering window
(QVTKWidget)? I've tried the following approaches:
1. Setting parallel scale on vtkCamera: I had luck fitting width only. How
can I fit height also?
2. vtkActor::SetScale method: how can I correctly calculate the x and y
scale factors to fit the screen? I've used the world coordinate proportion
related to the display coordinate, but something stills wrong since the
object isn't displayed as it should.

Thanks for any help.

Joao.



--
View this message in context: http://vtk.1045678.n5.nabble.com/Actor-scaling-tp5735893.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list