making vertebrae simulator using vtk

Hello, I’m trying to make vertebrae simulator using vtk.

I have a few vertebrae stl meshes. I want to make simulation using these. (e.g., nodding his head, etc. )
reference video is here (0:56:10 ~ 0:58:02 )

Can I create these simulation programs using vtk?
Please let me know if you have any code or project to refer to.

I always get a lot of help from great users on this site. Thank you.