mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-23 17:02:39 +00:00
A scarf joint split the loop at exactly the scarf length, so the remainder of the segment the split landed in became the first flat segment, often a fraction of a millimetre. The seam insertion also leaves segments of a few micrometres at both ends of the loop, which a scarf extrudes through where a plain loop would start or stop. With junction deviation the planner treats such short moves as tight corners, limited by the Z axis acceleration at the end of the ramp, and slows to a third of the wall speed or nearly halts at the seam. Extend the ramp to the next vertex when the remainder would be shorter than half a scarf step, capped at a millimetre, beyond which planners treat a move as ordinary; the scarf only grows, never shrinks. Drop the vertex next to the seam point at either end when that segment is shorter than an eighth of a common line width, so the loop still starts and ends at the seam; a trimmed path loses its arc fitting and prints as line segments. Clamp the scarf length to the trimmed loop so a scarf covering a whole loop still ends at full flow. The descending pass reuses the same path, so both wedges stay consistent, and a flat part that would collapse to a single point is dropped.