Skip to content

Updating CPP code.

Andrew Maclean requested to merge (removed):updating_cpp_code into master

Code has been reformatted and tested to ensure it compiles against the VTK master. Where colors were specified by floats color names are now used.

The C++ code now uses vtkNew() and auto.

Using vtkNew() for two reasons:

  1. As a teaching tool it makes it simpler and easier for people to write/understand the code.
  2. The code layout looks much neater. vtkNew is sufficiently distinctive so it highlights the vtk specific declaration.
Edited by Andrew Maclean

Merge request reports

Loading