Skip to content

technohippy/teddyjs

Repository files navigation

Teddy.js/PaintUp

JavaScript Version of Teddy and a Demo Application for the library

Teddy.js

Countour to Mesh

The teddy.js allows you to build a 3D mesh from a 2D coutour. Briefly speaking, the mesh-buiding procedure is described below:

  1. Triangulate a countour.
  2. Retrieve a spine.
  3. Re-triangulate based on the spine.
  4. 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.

PaintUp

https://technohippy.github.io/teddyjs/

countour pump mesh

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.

How to Use

Paint pen or cut scissor the canvas then push 3D button 3d. That's all you should do to build a 3D model.

How to Install

If you are using Chrome for Android, you can use the web app like a native app by using "Add to home screen" menu.

homescreen

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.

icon withoutaddress

Author

Ando Yasushi ([email protected])

About

Experimental Implementation of Teddy in JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published