mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-01 09:22:58 -05:00
Elephant foot compensation measured contour widths on the polygon simplified with SCALED_EPSILON, and kept only the first piece the simplification returned. Where the simplification split a polygon, for example at walls thinner than that tolerance, the other pieces were dropped from the first layer; where it returned nothing, front() was undefined. Compensate each piece instead. A polygon that simplifies to a single piece is compensated exactly as before. Ported from Snapmaker/OrcaSlicer@3412141cc7 Co-authored-by: lhx <luohaoxuan@snapmaker.com>
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: