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>