[vtkusers] vtkProbeFilter : Does not work with polydata?

Nico Vermaas vermaas at astron.nl
Mon Mar 31 04:48:58 EST 2003


Hi,

When I try out the vtkProbeFilter examples I get this error message:
"no matching function for call to `vtkProbeFilter::SetInput (vtkPolyData *)"

What can be wrong?

Nico

------------------------------------------
#include "vtkProbeFilter.h"

<snap>

  vtkContourFilter* contour = vtkContourFilter::New();
  contour->SetInput(this->ImageData);
  contour->SetNumberOfContours(1);
  contour->SetValue(0, 220);

  // Magnitude of the gradient vector.
  vtkImageGradientMagnitude* magn = vtkImageGradientMagnitude::New();
  magn->SetDimensionality(3);
  magn->SetInput(this->ImageData);

  // Probe magnitude with iso-surface.
  vtkProbeFilter* probe = vtkProbeFilter::New();
  probe->SetInput(contour->GetOutput());    <=============== error msg ==============
  probe->SetSource(magn->GetOutput());
  probe->SpatialMatchOn();





More information about the vtkusers mailing list