[vtkusers] vtkProbeFilter

Paul McGuinness mcguinpg at maths.tcd.ie
Tue Jul 1 10:38:45 EDT 2003


Hi developers,

I am having a problem with vtkProbeFilter, see the code below.
vtkProbeFilter doesn't seem to like polydata as an input.
Does anyone know how to fix this, I have been following the examples
ofvtkProbeFilter on the vtk home website?


   vtkDataSetReader *sr= vtkDataSetReader::New();
      sr->SetFileName("../data/feet.128.vtk");

      vtkDataSetReader *norm = vtkDataSetReader::New();
      norm->SetFileName("../data/norm.128.vtk");

      vtkContourFilter *contour = vtkContourFilter::New();
     contour->SetInput(sr->GetOutput());
  contour->SetValue(0,110);


vtkProbeFilter *probe = vtkProbeFilter::New();

  probe->SetInput(contour->GetOutput()); // this line seems to be the
problem

  probe->SetSource(norm->GetOutput());
  probe->SpatialMatchOn();

This is my error that I get when I compile:

Building object file colorfeet.o...
/home/cs/pmcguinn/visual/project/colorfeet.cxx: In function `int main
(int, char **)':
/home/cs/pmcguinn/visual/project/colorfeet.cxx:48: no matching function
for call to
`vtkProbeFilter::SetInput (vtkPolyData *)'
/usr/local/include/vtk/vtkDataSetToDataSetFilter.h:62: candidates are:
void
vtkDataSetToDataSetFilter::SetInput (vtkDataSet *)

Hope that you can help me,
Paul




More information about the vtkusers mailing list