Teddy - An OpenGL implementation
A sketching interface which converts the 2D freeform strokes created on the screen to a 3D model in OpenGL. This project is inspired by Teddy (Igarashi et al. , 1999) and aims to recreate it in OpenGL.
Note that Poly2tri and ImGui are already included in the source code, so you would not need to download it separately.
- Clone the git repository.
- Make sure that you possess OpenGL library installed, you can check it via the command
glxinfo | grep "OpenGL version"
. - Build the source code using the command:
make
- Use the command
./teddy
to start sketching.
- Click the left mouse button and drag your mouse to sketch whatever you like. And as soon as you release the button, Delaunay Triangulation would itself happen.
- Clear the drawn figures using the clear button.
- Click the right mouse button to apply pruning.
- Click the middle mouse button to sew triangles and elevate the edges.
- Click Shift if you wish to go back to Delaunay Triangulation, Right mouse button for pruning and middle mouse button for sewing the triangles and elevating the edges.