[vtkusers] vtkFrustumSource confusion/bug?!
bill.lorensen at gmail.com
Fri May 14 08:57:24 EDT 2010
I looked at the code and verified your findings. Nice detective work.
Can you please file a bug here?
Bugs reported on the mailing list tend to get lost in the shuffle.
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
> ,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 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.
> 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:
More information about the vtkusers