is here:
https://github.com/glawlor/VTK/tree/collision

It is the initial commit with the original class and a test. You’ll have to add the test image to VTK_DATA_ROOT/Baseline/Graphics/TestCollisionDetection.png

Feel free to improve the code – there are some prompts in the source where speed increases could be achieved. The class is accurate rather than quick.