Gcode export smaller pad size

Bug #1528040 reported by Ferenc Mayer on 2015-12-20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gEDA project

Bug Description

I made a footprint with pad around the pin. If I export this footprint with gcode exporter the pad size is smaller then the pin size exactly with parameter iso-tool-diameter. If I increase the pad size exactly with iso-tool-diameter parameter size the export is ok. I think it is somewhere the export calculating problem.
Thank You

Ferenc Mayer (mayerf) wrote :
tags: added: gcode-export
Changed in pcb:
importance: Undecided → High
Milan Prochac (milan-x) wrote :

The pads are drawn using polygon functions and in this particular case the tool size was not taken into account.

The attached patch simply draws polygons using pen of proper width.

Milan Prochac (milan-x) wrote :

The result - top image is created with patch, compared with previous result (bottom one).

Peter Clifton (pcjc2) wrote :


Not super-clear from the libgd docs how the "line width" parameter is used when filling polygons. Does it basically stroke the outline with that width?

I was slightly confused, as in your example image _with_ the patch, it doesn't appear that there are rounded corners.

Bert - you can add my "Reviewed-by: Peter Clifton <email address hidden>" if you fancy when committing this.

Changed in pcb:
milestone: none → pcb-4.0.1
status: New → Fix Committed
Changed in pcb:
milestone: pcb-4.0.1 → pcb-4.1.0
Changed in pcb:
milestone: pcb-4.1.0 → pcb-4.0.1
Changed in pcb:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers