Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid collisions when moving Z down #7208

Merged
merged 3 commits into from
Oct 27, 2024

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
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