For an upcoming mesh collision problem in one of my vtk/Qt/C++ projects I wanted to try the collision filter in the vtkBioeng package (website, git repository). However, the current source code is not compileable with vtk 6.x, because backwards compatibility with vtk 4.x code was removed.
I therefore adapted the CMake scripts and source code myself to make it compile with vtk 6.2. Since I’m not an expert in vtk module development, I don’t want to integrate my changes into the original repository and therefore uploaded the changes to my own public git repository.
I basically just applied all the steps listed in the migration guides from the following sources:
I’m pretty sure some additional work can and needs to be done, especially in the CMake script, but these changes seem to work well enough for me. You can see the output of the first test case on the right.
- Only tested with C++. I’m pretty sure the wrappers (TCL? Java?) don’t work
- Not tested thoroughly. (The first testcase looks ok, the second one seems to behave weirdly.) However, I will update the repository in case I make further changes once I start using the filter in my production code..