JavaScript Version of Teddy and a Demo Application for the library
The teddy.js allows you to build a 3D mesh from a 2D coutour. Briefly speaking, the mesh-buiding procedure is described below:
- Triangulate a countour.
- Retrieve a spine.
- Re-triangulate based on the spine.
- Raise polygons around the spine.
To know about the algorithm in detail, please see the original paper.
Note that though the original teddy described in the paper realizes some other operation than pumping a countour such as extrusion, cutting and so on, the teddy.js can only pump a 2D figure.
https://technohippy.github.io/teddyjs/
PaintUp is a sample application utilizing teddy.js. You can:
- Build a 3D model from your 2D painting.
- Download a built 3D model in obj/stl format.
- Use this on your smartphone.
Paint or cut the canvas then push 3D button . That's all you should do to build a 3D model.
If you are using Chrome for Android, you can use the web app like a native app by using "Add to home screen" menu.
The term "like a native app" here means:
- The application icon exists on the home screen.
- The application can be used without any address bar.
- The application can be used off line if the day comes where a Chrome for Android suppots Service Workers.
Ando Yasushi (andyjpn@gmail.com)