Commit d776f283 authored by Chris Cantwell's avatar Chris Cantwell

Fixed support for VTK6 in VtkToPng

parent 30e12de5
......@@ -100,7 +100,11 @@ int main(int argc, char * argv[])
// Create a mapper and actor
vtkSmartPointer<vtkDataSetMapper> mapper =
vtkSmartPointer<vtkDataSetMapper>::New();
#if VTK_MAJOR_REVISION <= 5
mapper->SetInput(data);
#else
mapper->SetInputData(data);
#endif
mapper->ImmediateModeRenderingOn();
mapper->ScalarVisibilityOn();
mapper->SetScalarModeToUsePointData();
......
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