[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: drill files from gerber output in HID version
> I am using GTK-HID, I generated the gerber files with the export
> option. I tried sending the .fab.gbr and they said not in Excellon
> format. So then I sent the .cnc file and they said "your NC drill
> file use tools which are not defined". Any hints?
Rounding bug. I'm checking this patch in.
Index: hid/gerber/gerber.c
===================================================================
RCS file: /cvsroot/pcb/pcb/src/hid/gerber/gerber.c,v
retrieving revision 1.11
diff -p -U2 -r1.11 hid/gerber/gerber.c
--- hid/gerber/gerber.c 21 May 2006 03:52:44 -0000 1.11
+++ hid/gerber/gerber.c 6 Jun 2006 03:31:37 -0000
@@ -853,4 +853,6 @@ static void
gerber_fill_circle (hidGC gc, int cx, int cy, int radius)
{
+ if (is_drill)
+ radius = ROUND(radius*2)/2;
use_gc (gc, radius);
if (!f)
@@ -867,5 +869,5 @@ gerber_fill_circle (hidGC gc, int cx, in
pending_drills[n_pending_drills].x = cx;
pending_drills[n_pending_drills].y = cy;
- pending_drills[n_pending_drills].diam = ROUND(radius * 2);
+ pending_drills[n_pending_drills].diam = radius * 2;
n_pending_drills++;
return;