A by-product of the recent rewrite of 3DTin was that, it got well modularized. I was able to separate the core 3DTin editor from the rest of the application logic. Once having done that, it was easy to package the core editor as a jQuery plugin.
The way it works is very simple. On your HTML page, include a <canvas> tag. Then invoke the 3DTin jQuery plugin on that element and it will convert the rectangular canvas into a 3D model editor. It’s that simple.