[vtkusers] Convert vtkpolydata lines to vtkimagedata

Brett Tully brett.tully at oxyntix.com
Tue May 29 06:38:17 EDT 2012


Hi all,
I have a non-manifold 2D polydata object (say a square with a line inside
it) that I would like to convert into an image data object. Is there a way
to know what cells of the image data a line from the polydata passes
through? I.e. those cells that are cut by a line might be coloured black,
while the rest are white. I have looked at the vtkPolyDataToImageStencil
filter, but this only appears to work for closed polygons (like here:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataContourToImageData
)?
Thanks!
Brett.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120529/33e960a0/attachment.htm>


More information about the vtkusers mailing list