Tube Bending Simulation

Hello All,

Please watch the video at link below.

It is Tube Bending Simulation… I want to develop a simulation program as in video.

The machine model will be imported from Step file and present on 3D view. There is no problem about that.
My problem is that i don’t know how can i create Torus progmaticaly which is changing its Angle from 0 to 90 (for example) instandly
I dont have no idea how can i do that using RhinoCommon component… where i must do start to work from…

Thanks for your adivise