[vtkusers] how to convert data type?
bowang at iastate.edu
Sat Feb 10 18:02:11 EST 2001
I am trying to use filter vtkShepardMethod to resample the points set to a structured points set and try to volume render the dataset. The code for this pipeline is :
vtkVolumeRayCastMapper *volumeMapper = vtkVolumeRayCastMapper::New();
Here is the error information i get:
ERROR: In d:\nightly\vtk\graphics\vtkVolumeRayCastMapper.cxx, line 912
vtkVolumeRayCastMapper (0x00307180): The scalar data type: 10 is not supported when volume rendering. Please convert the data to unsigned char or unsigned short.
Does vtkVolumeRayCast only support the data type of unsigned char or unsigned short? If yes, how to convert the data set this two types?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers