Made in AS3 with the built-in 3D functionality (in 1 class 541 lines long). Press the space bar to toggle through the four different view modes.