Open ktbolt opened 1 year ago
I've added a directive to test for VTK version >= 9 and selectively define vtkIdType *pts;
depending on VTK version
#ifdef VTK_USE_NEW_ID_TYPE
vtkIdType const *pts;
#else
vtkIdType *pts;
#endif
Tested on MacOS and Ubuntu.
There were a lot of API changes from VTK 8 to VTK 9. This is causing compilation errors in some VTK calls
The fix is to add a
const
declaration, for example changeto
We need to think about how we want to make these changes, maybe add a test for VTK versions.