[vtkusers] Non-square pixels and SetPixelAspect()

Amy Squillacote amy.squillacote at kitware.com
Tue Jul 5 15:03:44 EDT 2005


To use parallel projection in VTK, assuming you have a vtkRenderer* called 
ren, do the following.

ren->GetActiveCamera()->ParallelProjectionOn();

- Amy

At 02:28 PM 7/5/2005, tom fogal wrote:
>  <000001c5818c$ff3587f0$314b2f50 at pacsys4>"John Platt" writes:
> >Maybe it's because I'm an engineer but I expected a square in world
> >coordinates to be displayed as a square on my monitor.
>
>if you're using a perspective viewing transformation and the square is
>not in a single plane, you will get this behavior.
>
>Perhaps VTK can be configured to give you a parallel projection. If
>you're using it to display some type of blueprint / map in which exact
>sizes matter, this is probably what you want.
>
>See "Projection and Clipping":
>
>http://pubpages.unh.edu/~cs770/notes/lectures.html
>
>HTH,
>
>-tom
>
> >------=_NextPart_000_0001_01C58195.60F9EFF0
> >Content-Type: text/html;
> >       charset="us-ascii"
> >Content-Transfer-Encoding: quoted-printable
> >
> ><html>
><snip>
>
>Please do not send HTML mail.
>_______________________________________________
>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




More information about the vtkusers mailing list