Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.46 KB

File metadata and controls

41 lines (27 loc) · 1.46 KB

3D Object reader and Mesh Decimator

.obj file reader and Mesh Decimator created as a final project for CS 4300 Computer Graphics

  • This project implements the Edge Collapse algorithm for mesh decimation.

How to run

  1. Python, OpenGL, and SDL are required to run
  2. Navigate to ./ModelParserAndDecimator/part1 and in the terminal run python3 build.py
  3. Then from the terminal run ./lab to run the executable.
  4. A SDL window will pop up and display a mesh, allowing decimation functionality. See the window commands below.

Commands

  1. Press w to toggle wireframe mode
  2. Press number keys to decimate mesh by a percentage * 1 is 10%, 2 is 20%, and so on * 0 is 99%
  3. Press spacebar to switch to a new model

External resources used: