This application is a sketcher which allows you to draw shapes in 2D and see them extruded and rendered in 3D afterwards.
- Build using CMAKE
- Run the Program
Once the program is running there is a "Sketcher" window. This window lets you draw shapes in 2D. Press keys 1-3 to switch between triangle, square and lastly pentagon drawing modes. You can change the color of the shapes you draw using the sliders above the drawing window. If you want to clear the canvas, you can press c
Once you have all the shapes you want to draw, press the Enter/Return key and the rendering window will open up.
In here you will see your shapes rendered in 3D, and using the ArrowUp/Down keys you can manipulate the z-axis extrusion.
If you want to go back to the sketcher, simply press the Esc key. Pressing the Esc key in the sketcher will close the application.
Overlapping shapes are wonky, make at own risk.
Built using OpenCV, OpenGL, GLFW
- Program might need to be restarted if no shapes are drawn when clicking and draggin on screen