mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 22:24:01 -06:00
Fixed splitting of triangle meshes, where the splitting function
may produce a single triangle, which is then removed by the repair function.
This commit is contained in:
parent
ee96282ffc
commit
1659e4c77f
1 changed files with 4 additions and 0 deletions
|
@ -1699,6 +1699,10 @@ size_t ModelVolume::split(unsigned int max_extruders)
|
||||||
|
|
||||||
for (TriangleMesh *mesh : meshptrs) {
|
for (TriangleMesh *mesh : meshptrs) {
|
||||||
mesh->repair();
|
mesh->repair();
|
||||||
|
if (mesh->empty())
|
||||||
|
// Repair may have removed unconnected triangles, thus emptying the mesh.
|
||||||
|
continue;
|
||||||
|
|
||||||
if (idx == 0)
|
if (idx == 0)
|
||||||
{
|
{
|
||||||
this->set_mesh(std::move(*mesh));
|
this->set_mesh(std::move(*mesh));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue