Wrong conversion from vtkPolyData to vtkImageData (vtkPolyDataToImageStencil and vtkImageStencil)
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I'm trying to use vtkPolyDataToImageStencil and vtkImageStencil to extract vtkImageData out of vtkPolyData. But even when I try to convert a simple sphere into image data, the result gets wrong. I posted a picture to http://people.ee.ethz.ch/~kuhnan/public/imageData.jpg. It contains the slices of the resulting vtkImageData and you can see that on the first and the last slice, there is a white line instead of a point.
The code of an example program is available on http://people.ee.ethz.ch/~kuhnan/public/ImageStencilProblem.cxx.