[vtkusers] Misleading documentation in vtkCamera::GetFrustumPlanes
David Doria
daviddoria at gmail.com
Mon Jun 23 10:56:19 EDT 2014
On Mon, Jun 23, 2014 at 10:52 AM, joopeter <joo.peter at gmail.com> wrote:
>
> http://www.vtk.org/doc/nightly/html/classvtkCamera.html#a63ac225662fc7b81628366a7b3b7096c
>
> Hello, I found that the documentation is misleading, because it tells that
> the order of the planes is:
> left,right,bottom,top,far,near
>
> Debugging VTK revealed that the actual order is
> left,right,bottom,top,near,far
>
> This is how I verified that it is wrong: I created 10 equidistant points
> from the camera position (outside the frustum) to the focal point (inside
> the frustum) and I checked the signed distances of the last and the second
> last planes.
>
> The second last remained positive (far plane, oriented inward) while the
> last went from negative to positive. That is the behavior of the near
> plane!
> the first point is the camera, which is outside of the viewing frustum,
> therefore it has negative sign, the last is the focal point for which the
> signed distance was positive.
>
> Please fix+comment :)
>
Hello,
This type of question should be sent to the vtk-developers list for a
faster response:
http://www.vtk.org/mailman/listinfo/vtk-developers
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140623/a88622e6/attachment.html>
More information about the vtkusers
mailing list