[vtkusers] Problem with vtkPolyDataToImageStencil in 5.8

Jothybasu Selvaraj jothybasu at gmail.com
Mon Mar 5 14:49:38 EST 2012


No, it doesn't fix the problem.

But it seems to work fine for contours with z-spacing in steps of 1mm.

It is working well for a dataset with 3mm spacing but fails for 2.5 mm.

Maybe I need to test it thoroughly. Can I use those cxx and .h from 5.6 in
5.8, that would be a easy workaround.

Thanks

Jothy

On Mon, Mar 5, 2012 at 4:01 PM, David Gobbi <david.gobbi at gmail.com> wrote:

> 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
>



-- 
Jothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120305/6d1da04b/attachment.htm>


More information about the vtkusers mailing list