MantisBT - VTK
View Issue Details
0008269VTK(No Category)public2008-12-09 12:232014-10-02 11:05
Michael Knopke 
David Gobbi 
normalcrashalways
closedunable to reproduce 
 
5.10.0 
0008269: vtkImageStencil fails if vtkPolyDataToImageStencil is outside of image
With VTK 5.2 release the stencil either produces wrong croppings or produces access violations if the polydata used to create the stencil is outside of volume/image bounds.

Steps to reproduce:

change line 237 of ImageTracerWidget.tcl :
isw ClosedOff
to:
isw ClosedOn
...to make the tracer widget always close the spline (a closed path doesn't
update the spline).

Start the script.
In the left window draw something like a circle but don't close it, it will
automatically close the spline on the right side.
No move the spline outside the image:
When moving up or down all is correct, but moving left right (outside of the
image) produces wrong cropping (or crashes). This bug was not in VTK 5.1
(cvs nightly).
hackaton
Issue History
2008-12-09 12:23Michael KnopkeNew Issue
2011-02-26 10:25David GobbiAssigned To => David Gobbi
2011-02-26 10:25David GobbiStatusbacklog => tabled
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2014-10-02 09:33David GobbiTag Attached: hackaton
2014-10-02 11:05David GobbiNote Added: 0033459
2014-10-02 11:05David GobbiStatusbacklog => closed
2014-10-02 11:05David GobbiResolutionopen => unable to reproduce
2014-10-02 11:05David GobbiFixed in Version => 5.10.0

Notes
(0033459)
David Gobbi   
2014-10-02 11:05   
I've tested as described in the bug report (against VTK 6) and could not reproduce. I suspect that it was fixed by one of the following commits several years ago. The code has changed extensively since the bug was reported.

commit 494839e38faa117e446e982bf0022204002ca1d1
Author: David Gobbi <david.gobbi@gmail.com>
Date: Tue Nov 15 11:40:44 2011 -0700
BUG: Eliminate degenerate lines before creating stencil

commit 23be97ed82eff8092a4f23b5a484f4a79b8be9da
Author: David Gobbi <david.gobbi@gmail.com>
Date: Mon Nov 14 22:24:56 2011 -0700
BUG: Fix bug in contour-closing code.
    
commit 01eee39752b48ea96971789cae5937f4cdf093a5
Author: David Gobbi <david.gobbi@gmail.com>
Date: Wed Nov 10 10:24:48 2010 -0700
BUG: Fix recent bugs in vtkImageStencilData, vtkPolyDataToImageStencil.