Reputation: 41
I have a VTK data file for a 3D model and I am trying to show a transformation applied to it.
I have the point coordinates/polygon data for every state in the transformation (there should be about 10-30 states), i.e. I could write another VTK file for each step.
I am trying to create a nice animation where each state would be shown for say, 1 second and then switch to the next one, as fluently as possible.
What would be the best thing to do?
Upvotes: 4
Views: 4219
Reputation: 10273
There are a handful of ways to animate something in VTK, with examples on the VTK Wiki.
The easiest way is probably to subclass vtkCommand
(DataAnimationSubclass), but the "VTK/right" way is with vtkAnimationScene
(AnimationScene).
Upvotes: 2