mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-31 00:52:51 +00:00
First working implementation of a GUI for cutting
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -36,6 +36,7 @@ class TriangleMesh
|
||||
void horizontal_projection(ExPolygons &retval) const;
|
||||
void convex_hull(Polygon* hull);
|
||||
void bounding_box(BoundingBoxf3* bb) const;
|
||||
void reset_repair_stats();
|
||||
stl_file stl;
|
||||
bool repaired;
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
%};
|
||||
int facets_count()
|
||||
%code{% RETVAL = THIS->stl.stats.number_of_facets; %};
|
||||
void reset_repair_stats();
|
||||
%{
|
||||
|
||||
SV*
|
||||
|
||||
Reference in New Issue
Block a user