Skip to content

Fix auto-arrangement boundary for skirt loops#10086

Open
ggriffiniii wants to merge 1 commit intobambulab:masterfrom
ggriffiniii:master
Open

Fix auto-arrangement boundary for skirt loops#10086
ggriffiniii wants to merge 1 commit intobambulab:masterfrom
ggriffiniii:master

Conversation

@ggriffiniii
Copy link
Copy Markdown

The get_real_skirt_dist function previously only returned the configured skirt_distance, ignoring the actual physical width of the skirt loops themselves. This caused the auto-arrangement algorithm to not allocate sufficient space, potentially placing skirt loops outside the buildable area.

This commit updates get_real_skirt_dist to calculate and include the total width of the skirt loops in its returned distance. The width is derived from initial_layer_line_width, falling back to line_width, nozzle_diameter, or a safe default of 0.4mm. It also ensures proper loop handling when a draft shield is enabled.

Additionally, unit tests have been added to verify this correct boundary calculation logic.

The `get_real_skirt_dist` function previously only returned the
configured `skirt_distance`, ignoring the actual physical width of the
skirt loops themselves. This caused the auto-arrangement algorithm to not
allocate sufficient space, potentially placing skirt loops outside the
buildable area.

This commit updates `get_real_skirt_dist` to calculate and include the
total width of the skirt loops in its returned distance. The width is
derived from `initial_layer_line_width`, falling back to `line_width`,
`nozzle_diameter`, or a safe default of 0.4mm. It also ensures proper loop
handling when a draft shield is enabled.

Additionally, unit tests have been added to verify this correct boundary
calculation logic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant