Skip to content

fix: Have invert-gerbers also properly mask the outline. - #750

Merged
eyal0 merged 1 commit into
pcb2gcode:masterfrom
eyal0:invert_outline
Jan 15, 2026
Merged

fix: Have invert-gerbers also properly mask the outline.#750
eyal0 merged 1 commit into
pcb2gcode:masterfrom
eyal0:invert_outline

Conversation

@eyal0

@eyal0 eyal0 commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

The cutter was already generating inverted gerbers but because we weren't correctly honors the bounding box, it was making an extra cut around the outside. This fix removes that cut.

This is useful for using pcb2gcode to cut out a template for placing a cut PCB into the template, for flipping it to do a double-sided board.

This fixes #745.

@eyal0 eyal0 self-assigned this Jan 12, 2026
@eyal0

eyal0 commented Jan 12, 2026

Copy link
Copy Markdown
Contributor Author

I hope that at least one of the tests will fail so that I can update an integration test and have coverage and a view of this change. Otherwise, I will need to add an integration test for this.

@eyal0

eyal0 commented Jan 12, 2026

Copy link
Copy Markdown
Contributor Author

It seems that there was one failure, which is good. After this passes all tests, it should be ready to go.

@eyal0 eyal0 changed the title feat: Have invert-gerners also invert an outline. fix: Have invert-gerbers also properly mask the outline. Jan 13, 2026
@coveralls

coveralls commented Jan 13, 2026

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 70.501% (+0.04%) from 70.466%
when pulling a359028 on eyal0:invert_outline
into fe5a589 on pcb2gcode:master.

The cutter was already generating inverted gerbers but because we
weren't correctly honoring the bounding box, it was making an extra
cut around the outside.  This fix removes that cut.

This is useful for using pcb2gcode to cut out a template for placing a
cut PCB into the template, for flipping it to do a double-sided board.

This fixes pcb2gcode#745.
@eyal0
eyal0 enabled auto-merge January 15, 2026 21:13
@eyal0
eyal0 merged commit 1eb1a4d into pcb2gcode:master Jan 15, 2026
11 checks passed
@eyal0
eyal0 deleted the invert_outline branch January 15, 2026 22:30
timaydin pushed a commit to timaydin/pcb2gcode that referenced this pull request Jan 27, 2026
fix: Have invert-gerbers also properly mask the outline.
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.

Cut from the inside?

2 participants