mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
Ported some more methods to C++
This commit is contained in:
@@ -153,6 +153,17 @@ TriangleMesh::reset_repair_stats() {
|
||||
this->stl.stats.normals_fixed = 0;
|
||||
}
|
||||
|
||||
bool
|
||||
TriangleMesh::needed_repair() const
|
||||
{
|
||||
return 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;
|
||||
}
|
||||
|
||||
void
|
||||
TriangleMesh::WriteOBJFile(char* output_file) {
|
||||
stl_generate_shared_vertices(&stl);
|
||||
|
||||
Reference in New Issue
Block a user