How to dynamically generate 3D pie charts?

How should I make and use vertex animation?