[vtkusers] vtkImagePlaneWidget and cellData

tony zhang tonyzhang0985 at gmail.com
Fri Apr 26 10:38:08 EDT 2013


I tried to use vtkImagePlaneWidget to display cellData throught
vtkXmlImageDataReader from a vti file. I got error:

ERROR: In
/home/myaccount/vtksource/VTK/Imaging/Core/vtkAbstractImageInterpolator.cxx,
line 261
vtkImageInterpolator (0x25a48e0): Initialize(): no image data to
interpolate!

I traced the error and found in line 2765 of vtkImageReslice.cxx, "scalars"
is 0x0.
The "scalars" is the line 3086:
vtkDataArray *scalars = inData[0][0]->GetPointData()->GetScalars();

The vti file only has cellData and no pointData.

Does vtkImagePlaneWidget support to display cellData?

Thanks for any help/suggestion.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130426/c4352ea2/attachment.htm>


More information about the vtkusers mailing list