Skip to content

Conversation

fritzw
Copy link
Contributor

@fritzw fritzw commented Oct 23, 2024

Avoid collisions with previous extrusions in the same layer when moving Z down in an XYZ move. This happens for example when starting a scarf joint after another perimeter was already printed.

Fixes #7191

Description

Set set_current_position_clear to false in GCodeWriter.cpp for any XYZ travel move that moves below the "nominal Z height", which I assume means the current layer printing height. This causes the move to be split into an XY move followed by a Z move in the logic below.

I found this solution cleaner than inserting special case handling in every branch of GCodeWriter::travel_to_xyz, since it uses the move splitting logic that is already there and proven to work.

Screenshots/Recordings/Graphs

The offending move is split into XY and then Z components. Compare screenshots in #7191.

bug_fixed

Tests

fritzw and others added 3 commits October 23, 2024 17:09
Avoid collisions with previous extrusions in the same layer when moving Z down in an XYZ move.
This happens for example when starting a scarf joint after another perimeter was already printed.

Fixes SoftFever#7191
Copy link
Owner

@SoftFever SoftFever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix
Thank you!

@SoftFever SoftFever merged commit cf6d9c7 into SoftFever:main Oct 27, 2024
15 checks passed
@jb510 jb510 mentioned this pull request Oct 31, 2024
1 task
SoftFever added a commit that referenced this pull request Feb 21, 2025
SoftFever added a commit that referenced this pull request Feb 21, 2025
Revert "Avoid collisions when moving Z down (#7208)"

This reverts commit cf6d9c7.
shyblower added a commit to shyblower/OrcaSlicer that referenced this pull request Mar 20, 2025
because it produces blobs at the beginning of the scarf slope

This reverts commit cf6d9c7.
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.

Scarf Joint Seam leads to collisions with previously printed perimeters when Z hop is disabled
2 participants