View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014042VTK(No Category)public2013-05-01 16:132014-10-29 09:53
ReporterNil Goyette 
Assigned ToDavid Gobbi 
PrioritynormalSeverityminorReproducibilityhave not tried
PlatformOSOS Version
Product Version5.10.0 
Target VersionFixed in Version6.2.0 
Summary0014042: vtkImageStencilData returns random bad lines
DescriptionI 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 [^] 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 [^] 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] [^]
TagsNo tags attached.
Typeincorrect functionality
Attached Filesdiff file icon 14042-polydatatoimagestencil-robustness-3.diff [^] (21,608 bytes) 2014-09-15 11:50 [Show Content]


David Gobbi (developer)
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.
David Gobbi (developer)
2014-09-15 11:52

Gerrit review page: [^]
David Gobbi (developer)
2014-10-29 09:53

commit 88ab5f7e3cf33d3781dae3f6d4ba06c1c79bb5b8

 Issue History
Date Modified Username Field Change
2013-05-01 16:13 Nil Goyette New Issue
2014-09-14 00:13 David Gobbi Assigned To => David Gobbi
2014-09-14 00:13 David Gobbi Status backlog => active development
2014-09-14 00:14 David Gobbi File Added: 14042-polydatatoimagestencil-robustness.diff
2014-09-14 00:16 David Gobbi Note Added: 0033333
2014-09-15 11:49 David Gobbi File Deleted: 14042-polydatatoimagestencil-robustness.diff
2014-09-15 11:50 David Gobbi File Added: 14042-polydatatoimagestencil-robustness-3.diff
2014-09-15 11:52 David Gobbi Note Added: 0033341
2014-09-15 11:52 David Gobbi Status active development => gerrit review
2014-10-29 09:53 David Gobbi Note Added: 0033672
2014-10-29 09:53 David Gobbi Status gerrit review => closed
2014-10-29 09:53 David Gobbi Resolution open => fixed
2014-10-29 09:53 David Gobbi Fixed in Version => 6.2.0

Copyright © 2000 - 2018 MantisBT Team