[vtkusers] Problem with vtkPolyDataToImageStencil in 5.8

David Gobbi david.gobbi at gmail.com
Mon Mar 5 11:01:21 EST 2012


Hi Jothy,

It underwent significant changes, but the only change I can think
of that might have affected your pipeline is the way that it does
rounding, it used to use a Floor() method that provided a small
tolerance even if you did SetTolerance(0).  Try calling
SetTolerance(1e-6) on your PolyDataToImageStencil object, it
might help.

 - David

On Mon, Mar 5, 2012 at 3:17 AM, Jothybasu Selvaraj <jothybasu at gmail.com> wrote:
> Hi all,
>
> I was able to create a mesh using the following pipeline in 5.6 and it
> worked well
>
> vtkPolyDataToImageStencil->vtkLinearExtrusionFilter->vtkImageStencil->vtkDiscreteMarchingCubes
>
> Now, I have updated vtk to 5.8 and I am getting gaps in the mesh along the z
> axis. I am really puzzled, I have tried with different data sets as well.
>
> I have read somewhere that vtkPolyDataToImageStencil had some changes in
> 5.8, does it has anything to do with this problem, or am I doing
> anything wrong?
>
> I have contours of constant z-spacing.
>
> Any hints?
>
> Thanks
>
> --
> Jothy



More information about the vtkusers mailing list