Skip to content

fix: Use spikes_keep_in for regular spikes, too.#637

Merged
eyal0 merged 2 commits into
pcb2gcode:masterfrom
eyal0:spikes_keep_in
Sep 22, 2022
Merged

fix: Use spikes_keep_in for regular spikes, too.#637
eyal0 merged 2 commits into
pcb2gcode:masterfrom
eyal0:spikes_keep_in

Conversation

@eyal0

@eyal0 eyal0 commented Sep 21, 2022

Copy link
Copy Markdown
Contributor

The spike math might lead a spike to point away from the trace instead of toward it. This is unlikely but when it happens, it might aim at a neighboring trace! And we don't yet have the neighboring trace's keep out so we can't use it.

Rather than defer the computation of spikes, which would be difficult, we will just keep the spikes within the voronoi region of the trace.

This only applies to regular traces, not to thermal reliefs nor voronoi milling.

This fixes #636

@coveralls

coveralls commented Sep 21, 2022

Copy link
Copy Markdown
Collaborator

Coverage Status

Coverage increased (+0.07%) to 69.339% when pulling 2453cbd on eyal0:spikes_keep_in into 707d5eb on pcb2gcode:master.

These spikes are not properly trimmed and though the math should not
allow them, they can happen.  When they do, they might jut into a
neighboring trace and ruin the milling!
The spike math might lead a spike to point away from the trace instead
of toward it.  This is unlikely but when it happens, it might aim at a
neighboring trace!  And we don't yet have the neighboring trace's keep
out so we can't use it.

Rather than defer the computation of spikes, which would be difficult,
we will just keep the spikes within the voronoi region of the trace.

This only applies to regular traces, not to thermal reliefs nor
voronoi milling.

This fixes pcb2gcode#636
@eyal0
eyal0 merged commit 5a93919 into pcb2gcode:master Sep 22, 2022
@eyal0
eyal0 deleted the spikes_keep_in branch September 22, 2022 05:36
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.

Some vias get cut in half despite build with geos

2 participants