First working implementation of a GUI for cutting

This commit is contained in:
Alessandro Ranellucci 2014-04-25 17:14:39 +02:00
parent 882a98ed44
commit 4f17c2b7d1
6 changed files with 27 additions and 5 deletions

View file

@ -125,6 +125,17 @@ TriangleMesh::repair() {
this->repaired = true;
}
void
TriangleMesh::reset_repair_stats() {
this->stl.stats.degenerate_facets = 0;
this->stl.stats.edges_fixed = 0;
this->stl.stats.facets_removed = 0;
this->stl.stats.facets_added = 0;
this->stl.stats.facets_reversed = 0;
this->stl.stats.backwards_edges = 0;
this->stl.stats.normals_fixed = 0;
}
void
TriangleMesh::WriteOBJFile(char* output_file) {
stl_generate_shared_vertices(&stl);