mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-26 15:21:19 -05:00
Spiral Z-Hop resolution Use slicing resolution to determine segment count for emulated spiral Z-hop What’s changed The number of linear segments used to approximate a spiral Z-hop is now derived from the PrintConfig resolution value. The segment count is clamped to a safe range (4–24) to avoid excessive G-code generation or MCU queue overflow. Why Previously a fixed 24 segments were always used, regardless of model resolution. For small-radius spiral lifts this was excessive and could overwhelm some printers. Adapting segment count to resolution ensures smooth motion where needed, but lighter G-code where possible. Details m_resolution is now stored via apply_print_config(). _spiral_travel_to_z() uses this value to compute segment count dynamically. Only the linear-segment fallback path is affected; G2/G3 arc-fitting remains unchanged.