[Paraview-developers] Swapped "near" and "far" view frustum planes?

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon Feb 16 08:22:29 EST 2015


Anton,

See this: http://www.vtk.org/doc/nightly/html/classvtkCamera.html#a63ac225662fc7b81628366a7b3b7096c
That describes how the planes are specified.

Utkarsh

On Mon, Feb 16, 2015 at 3:24 AM,  <anton.piccardo-selg at stfc.ac.uk> wrote:
> Hi,
>
> I am currently reading out the view frustum via the vtkCamera. I am using ParaView 3.98.1. With the method getFrustumPlanes(double aspectRatio, double[24] planes) I can access the planes. The documentation states that the plane equation coefficients are returned as left, right, bottom, top, far, near. When I look at the output, then it seems that near and far are swapped.
>
> For example, I set my camera to look in the -z direction. The documentation states that the plane normals point inwards. Hence, I assume that the first three coefficients for the far plane should be 0,0,1 and for the near plane 0,0,-1. But just the opposite is the case. The other planes (left, right, bottom, top)  seem to point inwards.
>
> I am a bit confused by this. Does anyone know what my mistake or misconception is?
>
> Many thanks and best regards,
>
> Anton
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview-developers


More information about the Paraview-developers mailing list