MantisBT - VTK
View Issue Details
0014042VTK(No Category)public2013-05-01 16:132014-10-29 09:53
Nil Goyette 
David Gobbi 
normalminorhave not tried
closedfixed 
5.10.0 
6.2.0 
TBD
incorrect functionality
0014042: vtkImageStencilData returns random bad lines
I have a mitk::Mesh which I know is a well-defined closed surface because I can see it and, as intructed in [1], vtkFeatureEdges returns 0 bad feature. This mesh looks like http://i.imgur.com/1HWqmmy.jpg. [^] It may be hard to see, but it's a heart countour, with no bottom. The middle volume is empty, the mesh only defines the contour.

So, here's the pipeline
1. A vtkPolyData that I'm pretty sure is valid because in [1], David Gobbi advises to use vtkFeatureEdges and vtkCleanPolyData, both of which return what I want.
2. vtkImageStencilData using vtkPolyDataToImageStencil with tolerance = 1.0
3. Create a binary image with this stencilData using vtkImageStencil

Like the guy in [1], I obtain random lines at the bottom of my polyData. You can see them here http://i.imgur.com/k9jXgg7.jpg. [^] I don't understand where these lines come from. They dissapear when tolerance = 0.0, but I can't set tolerance to 0 because sometime the countour is really thin, so it will dissapear.

Another advice in [1] is to recompile vtk using double in vtkPolyDataToImageStencil, but this is not an option for us. So, what can I do to get rid of these lines?

[1] http://vtk.1045678.n5.nabble.com/Problem-with-vtkPolyDataToImageStencil-td5714947.html [^]
No tags attached.
diff 14042-polydatatoimagestencil-robustness-3.diff (21,608) 2014-09-15 11:50
https://www.vtk.org/Bug/file/9715/14042-polydatatoimagestencil-robustness-3.diff
Issue History
2013-05-01 16:13Nil GoyetteNew Issue
2014-09-14 00:13David GobbiAssigned To => David Gobbi
2014-09-14 00:13David GobbiStatusbacklog => active development
2014-09-14 00:14David GobbiFile Added: 14042-polydatatoimagestencil-robustness.diff
2014-09-14 00:16David GobbiNote Added: 0033333
2014-09-15 11:49David GobbiFile Deleted: 14042-polydatatoimagestencil-robustness.diff
2014-09-15 11:50David GobbiFile Added: 14042-polydatatoimagestencil-robustness-3.diff
2014-09-15 11:52David GobbiNote Added: 0033341
2014-09-15 11:52David GobbiStatusactive development => gerrit review
2014-10-29 09:53David GobbiNote Added: 0033672
2014-10-29 09:53David GobbiStatusgerrit review => closed
2014-10-29 09:53David GobbiResolutionopen => fixed
2014-10-29 09:53David GobbiFixed in Version => 6.2.0

Notes
(0033333)
David Gobbi   
2014-09-14 00:16   
A patch has been attached that should fix the issue. I'll do a bit more testing and make sure it gets into VTK 6.2.
(0033341)
David Gobbi   
2014-09-15 11:52   
Gerrit review page:

http://review.source.kitware.com/#/c/17021/ [^]
(0033672)
David Gobbi   
2014-10-29 09:53   
commit 88ab5f7e3cf33d3781dae3f6d4ba06c1c79bb5b8