Clean up and fix TriangleMesh::split and relatives

This commit is contained in:
Sijmen Schoon 2019-03-28 12:34:41 +01:00 committed by bubnikv
parent 62539bc35b
commit 19dc89bfab
3 changed files with 67 additions and 105 deletions

View file

@ -68,12 +68,8 @@ public:
size_t facets_count() const { return this->stl.stats.number_of_facets; }
bool empty() const { return this->facets_count() == 0; }
// Returns true, if there are two and more connected patches in the mesh.
// Returns false, if one or zero connected patch is in the mesh.
bool has_multiple_patches() const;
// Count disconnected triangle patches.
size_t number_of_patches() const;
bool is_splittable() const;
std::deque<uint32_t> find_unvisited_neighbors(std::vector<bool> &facet_visited) const;
stl_file stl;
bool repaired;