[vtkusers] Moving the origin of the scene

Cory Quammen cory.quammen at kitware.com
Mon Jun 13 06:23:43 EDT 2016

You'll want to use vtkCamera to move the view to the origin of the scene.


vtkCamera::SetPosition(const double[3])
vtkCamera::SetFocalPoint(const double[3])

Set the focal point to the origin of the scene. You can independently
set the position of the camera and it will look at the focal point
wherever you position it. You may want to call
vtkCamera::OrthogonalizeViewUp() after setting these points to ensure
the camera behaves nicely.

You can get the current camera from the vtkRenderer via

vtkCamera* vtkRenderer::GetActiveCamera()



For an example that positions the camera in this way.


On Mon, Jun 13, 2016 at 10:02 AM, c_mihai via vtkusers <vtkusers at vtk.org> wrote:
> Should I be using vtkCoordinate? There aren't many examples with it, so I
> don't really understand how it would give me the transformation I need to
> move the world's origin.
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Moving-the-origin-of-the-scene-tp5738621p5738634.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers

Cory Quammen
R&D Engineer
Kitware, Inc.

More information about the vtkusers mailing list