Files
OrcaSlicer/tests/libslic3r
Ian Bassiandjianglinfeng abe2fba75c Check the mesh before subdividing it
igl::loop() pairs exactly two faces per edge, running along it in
opposite directions, and sizes its vertex adjacency by the largest
vertex index in use. A repeated face, in either winding, a flipped face,
an edge shared by more than two faces, a face that repeats a vertex or
an unused vertex after the used ones made it index out of bounds. None
of these shows up as an open edge, so the menu still offered the
subdivision. Drop repeated faces, faces that repeat a vertex, which have
no area, and unused vertices. Report two faces running along an edge the
same way, as around a flipped face or on an edge of more than two faces,
as an error, which the menu already turns into a request to repair the
mesh. A clean mesh subdivides as before.

Ported from Snapmaker/OrcaSlicer@b070bcfaff

Co-authored-by: jianglinfeng <jianglinfeng@snapmaker.com>
2026-11-30 14:12:40 -03:00
..
2026-10-11 22:36:16 -03:00
2025-12-08 22:42:11 +08:00