hi, i have a situation in which i have a sphere in a field of multiple randomly placed cubes, the sphere is controlled by keyboard and when the sphere intersects a cube or collides with a cube i want to change the color of that cube while leaving the rest of the cube as is. i looked for a method that can give the actor that the sphere is colliding with but not able to find it.
how can this be achieved?
any help would be great
Thanks
lorensen
(Bill Lorensen)
July 18, 2019, 11:11pm
2
Take a look at vtkCollisionDetectionFilter . I’ll try to write an example soon.
Bill
lorensen
(Bill Lorensen)
July 19, 2019, 9:47pm
3
I added an example to the VTK Examples Project called CollisionDetection . I also added some videos on youtube in the VTK Examples Playlist .
HTH,
Bill
hi, thanks for the suggestion. Thing is i just want to get the actor that i am colliding with.
amaclean
(Andrew Maclean)
July 22, 2019, 5:13am
5
I have just added a Python version.
hi mr lorense
Why there is no class vtkcollisiondetectionfilter in vtk python?
vscode dosent know.
lorensen
(Bill Lorensen)
August 8, 2019, 8:00pm
7
The class in not in a released version. You will need to checkout the current head and build VTK with python wrapping on,
Here is a video showing the class in action.
Can you explain more
I have an urgent need to stop two stl files with them
thank you
lorensen
(Bill Lorensen)
August 8, 2019, 8:42pm
9
You need to build vtk. Follow the instructions here .
Hello i downloaded vtk and so did cmake but i get error when i press configure key and it says file invalid can you help me?