[vtkusers] vtkFrustumSource confusion/bug?!

Bill Lorensen bill.lorensen at gmail.com
Fri May 14 08:57:24 EDT 2010


Ben,

I looked at the code and verified your findings. Nice detective work.

Can you please file a bug here?
http://www.vtk.org/Bug/view_all_bug_page.php

Bugs reported on the mailing list tend to get lost in the shuffle.

Thanks,

Bill


On Fri, May 14, 2010 at 4:54 AM, Benjamin Sobotta <mayday at gmx.net> wrote:
> Hello VTK community,
>
> I'm writing because I came across some issues with vtkFrustumSource. I
> _irregularly_ had issues similar to
>
> http://www.vtk.org/pipermail/vtkusers/2009-December/104585.html
>
> ,i.e. insane bounds, e.g. Bounds[i] = 2e20.
> I tried to track down the problem and I found that the crazy values come from
> the lines in vtkPolyData::ComputeBounds, i.e. cella[1] in the code. I then
> went to investigate vtkFrustumSource::RequestData. While additional space for
> the line points is allocated (nbPts is increased), that space is _never_
> written to. newPoints->SetPoint is called 8 times for the corners of the
> polygons. However, additional points for the lines are not inserted. If that
> uninitializaed space evaluates to large floats, ComputeBounds explodes.
> If I set ShowLines = false, the problem is fixed. I also noted that the
> LinesLength attribute is never used.
>
> Since I'm not very familiar with the internals of VTK, please advise if I
> understood something completely wrong.
>
> Benjamin
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list