Project 2 (implementation of the paper Surface Simplification Using Quadric Error Metrics) of the course Computer Graphics, 2019 Spring, Tsinghua University.
Use g -o mesh_simp mesh_simp.cpp -std=c 11 -O3
to compile the code.
Use mesh_simp <input_model> <output_model> <simp rate> <dist threshold>
to run.