Skip to content

Fix artefacts in LaserHoldfast outline due to corner overcorrections#924

Merged
florianfesti merged 2 commits into
florianfesti:masterfrom
MartinScharrer:laserholdfast_fix
May 6, 2026
Merged

Fix artefacts in LaserHoldfast outline due to corner overcorrections#924
florianfesti merged 2 commits into
florianfesti:masterfrom
MartinScharrer:laserholdfast_fix

Conversation

@MartinScharrer
Copy link
Copy Markdown
Contributor

This PR fixes some drawing artefacts done by polygonWall() corner correction as well as by the added burn radius in some corners.

Before the hook had some larger extra lines in its start and end corners:

LaserHoldfast_before
  • This can be largely avoided by using correct_corners=False to avoid overcorrections for these difficult corners.
  • Then some negative arcs with the burn radius appear (due to self.burn - radius in Boxes.corner() while radius=0), so a radius with self.burn is added to get a proper, zero corner.
  • This however makes the lines not meet at the end, so some other length where adjusted and None was added to make polygonWall() autoclose the path. The result has some extra points for the autoclosing then, which seem to be acceptable and not easily avoidable.

After:
LaserHoldfast_after

 * correct_corners=False to avoid overcorrections.
 * added small radius with size of the burn corrections to avoid negative corner artefacts.
@florianfesti florianfesti merged commit fc9ded5 into florianfesti:master May 6, 2026
3 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.

2 participants