How to build a swept surface ?

This C++ Example Morph3D, should help. Here a V is morphed into a T and finally a K.