[vtkusers] vtkContourFilter issue

David Doria daviddoria+vtk at gmail.com
Wed Dec 9 12:08:54 EST 2009


On Wed, Dec 9, 2009 at 11:49 AM, Jérôme <jerome.velut at gmail.com> wrote:
> I saw that increments is (0, 0, 0). It should be something like (1, 11,
> 121), no? Maybe you missed to call SetNumberOfScalarComponents( ... ) ?
>
> That's an (humble) idea...
> Jerome

I added
grid->SetNumberOfScalarComponents(1);

before the triple loop setting the components
grid->SetScalarComponentFromDouble(x,y,z,0,d);

and there was no change. The resulting polydata still has 0 points and
cells, and Increments is still (0,0,0).

As I typically request of other users, here is a compilable example
that produces the problem:
http://www.cmake.org/Wiki/VTK_Examples_Indicator_Function

Thanks,

David



More information about the vtkusers mailing list