VTK Examples, modernising the code

As far as I know, no. My approach is that:

  1. Use auto where is a variable clearly int or double.
  2. In a for loop e.g. for( auto it = …; …; …)
  3. In cases like this:
auto pl3d_output =
      dynamic_cast<vtkStructuredGrid*>(pl3d->GetOutput()->GetBlock(0));

instead of:

vtkStructuredGrid* pl3d_output =
    dynamic_cast<vtkStructuredGrid*>(pl3d->GetOutput()->GetBlock(0));

Just use common sense e.g. http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-auto