vtkVolumeTextureMapper3D crashes if one volume dimension is 1
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
in method vtkVolumeTextureMapper3D::UpdateVolume, the VolumeSpacing attribute can take a negative value (line 1149 in version 1.6):
this->VolumeSpacing[i] = (static_cast<double>(dim[i])-1.01)*(double)spacing[i] / static_cast<double>(this->VolumeDimensions[i]-1);
which causes a bad adress access in method vtkVolumeTextureMapper3DComputeScalars (line 217 in version 1.6):
inPtr = dataPtr + components * ( z*inputDimensions[0]inputDimensions[1] + dyinputDimensions[0] + x );
because z has value -1.