Hi everyone,<br><br>I am trying to use the vtkShepard method as follows:<br><br>// So the output from this is a vtkPolyData type structure<br>vtkImageData * in = vtkStripperObj-&gt;GetInput();<br><br>The output is a slice from a 3D volume...so the points are defined in 3D...<br>
<br>shepard-&gt;SetInput(in);<br>shepard-&gt;SetSampleDimensions(80, 80, 1);<br>shepard-&gt;Update();<br><br>So I want to resample the slice data on a 80 X 80 grid. However, I get the following error:<br><br>ERROR: In /home/pankaj/development/VTK/Imaging/vtkShepardMethod.cxx, line 355<br>
vtkShepardMethod (0x1685c00): Sample dimensions must define a volume!<br><br>ERROR: In /home/pankaj/development/VTK/Imaging/vtkShepardMethod.cxx, line 176<br>vtkShepardMethod (0x1685c00): Points must be defined!<br><br>Does anyone know what I might be doing wrong? Any help would be greatly appreciated.<br>
<br>Cheers,<br>Luca<br><br><br>