pcb

Gcode export smaller pad size

Bug #1528040 reported by Ferenc Mayer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pcb
Fix Released
High
Unassigned

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

Tags: gcode-export
Revision history for this message
Ferenc Mayer (mayerf) wrote :
tags: added: gcode-export
Changed in pcb:
importance: Undecided → High
Revision history for this message
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.

Revision history for this message
Milan Prochac (milan-x) wrote :

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

Revision history for this message
Peter Clifton (pcjc2) wrote :

Hi,

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.