[vtkusers] Problem with vtkPolyDataToImageStencil

David Gobbi david.gobbi at gmail.com
Fri Jul 27 15:33:49 EDT 2012


Thanks for the info.  There is one other thing you can try: you can force
vtkPolyDataToImageStencil to use double precision for its temporary
data.  At around line 183 in vtkPolyDataToImageStencil.cxx, you will see
  vtkPoints *newPoints = vtkPoints::New();
After this line, add the following to force the points to double-precision:
  newPoints->SetDataTypeToDouble();
Then recompile VTK and retry your code.

 - David

On Fri, Jul 27, 2012 at 1:17 PM, matheus_viana <vianamp at gmail.com> wrote:
> Hi David.
>
> Many thanks for replying.
>
> Well, I've just check my PolyData structure and it seems to be OK concerning
> the point 1. As you suggested, I tried to use the vtkCleanPolyData in order
> to check the point 2. No changes at all when setting the tolerance to 1e-7.
> Therefore, my polydata seem to be OK in both cases. I also tried to set the
> tolerance of the cleaner to 1e-3, but the number of artifacts is even higher
> than before.



More information about the vtkusers mailing list