[vtk-developers] Handling VTK version preprocessor directives in a VTK 5/6 compatible manner

Bill Lorensen bill.lorensen at gmail.com
Thu Apr 26 14:11:56 EDT 2012


Folks,

To summarize the process to use VTK_MAJOR_VERSION, etc. in
preprocessor directives:

#include <vtkVersion.h>

This works for both VTK5 and VTK6.

Although the include is not required for VTK5, I suggest changing your
VTK5-based application code now to ease the porting to VTK6 later.

Bill
-- 
Unpaid intern in BillsBasement at noware dot com



More information about the vtk-developers mailing list