mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 17:27:52 -06:00
Ported some more methods to C++
This commit is contained in:
parent
678112b926
commit
5a96bad8c2
9 changed files with 61 additions and 50 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue