mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-29 00:21:56 -05:00
simplify() may move a vertex to the intersection of its neighbouring lines, guarded by a check that the point stays near them. The check squared the distance in int64, which overflows when nearly parallel lines meet more than about 3 m away, so the far point was accepted. The broken outline gave a Voronoi diagram the repair could not fix, and SkeletalTrapezoidation then dereferenced an edge without a twin. Compute the squared distances in double.
OrcaSlicer tests
Building, running and writing tests is documented on the wiki, under How to Test.
Two files here rather than there, because coding agents only read what is in the repository: