Commit f3c73c06 authored by Cory Quammen's avatar Cory Quammen

Skip rendering if input is not a vtkImageData

parent 54c4a2ed
......@@ -1369,6 +1369,12 @@ void vtkFixedPointVolumeRayCastMapper::Render(vtkRenderer* ren, vtkVolume* vol)
// this->ThreadWarning = false;
// }
if (vtkImageData::SafeDownCast(this->GetInput()) == nullptr)
{
vtkWarningMacro("Mapper supports only vtkImageData");
return;
}
if (this->GetBlendMode() != vtkVolumeMapper::COMPOSITE_BLEND &&
this->GetBlendMode() != vtkVolumeMapper::MAXIMUM_INTENSITY_BLEND &&
this->GetBlendMode() != vtkVolumeMapper::MINIMUM_INTENSITY_BLEND &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment