vtkBioeng for vtk 6.2

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:

Output of vtkbioeng test case
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.

Known issues:

  • 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..

4 Comments:

  1. Great, I Just had to add a definition in vtkCollisionDetectionFilter.h :
    #define VTK_LARGE_FLOAT 1.0e+38F;
    to compile it with vtk 6.3

    I’m trying it now …

  2. Thanks for all you efforts , it will grately help ful all the vtk comunity

  3. Hi, i am getting folowing error when confugure using cmake , am unble resolve this please tell if have any idea

    Error : VTK_MAKE_INSTANTIATOR2

  4. Hi, i am getting folowing error when confugure using cmake , am unble resolve this please tell if have any idea

    Error : VTK_MAKE_INSTANTIATOR3

    # note: sorry for last message

Leave a Reply

Your email address will not be published. Required fields are marked *