X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=fyiiWJ83b0o9nWZpt+HwipzwpF3QSNw/zLTbIyd7f9o=; b=B1FKuRR0u9hQreuOlv12XxfMcZv8nylOjYEayquqlS/yUGCpDaVhIPpfx7zjeHCCU8 FDoKtF9JiVHK9lUtroZSNIyWdWrG1KMyE/d5iW9St24R/ojvaZvCiGsuaYa+LyxuxbQD D8SeDBBrx+87fM9uR5ygYM3Eq8BewM3ehLV567M3k9ZJ3fuMWcKZs7VJb7KrhdKasRmK yMpq06RlirhBB9B2nb/CJkR80WpMtyQf2kwGjrYnpxAe36EBKDM5B4acTWNfDmaSj31p 0HdG/A9QNENnvRyD3IcEEDfSw75DBJLvGrZpsL32weXRbIjlGu5CobSN449XwMkrVp1O gM/g== MIME-Version: 1.0 In-Reply-To: <20120710014622.GE23449@malakian.lan> References: <20120703140236 DOT GA12646 AT visitor2 DOT iram DOT es> <20120705101614 DOT GA19974 AT visitor2 DOT iram DOT es> <20120706202633 DOT GA28355 AT malakian DOT lan> <20120706213340 DOT GA30622 AT visitor2 DOT iram DOT es> <20120707104156 DOT 17641 DOT qmail AT stuge DOT se> <20120708042719 DOT GE1637 AT malakian DOT lan> <20120709224559 DOT GB4355 AT visitor2 DOT iram DOT es> <20120709234535 DOT GD23449 AT malakian DOT lan> <20120710004318 DOT GA28800 AT visitor2 DOT iram DOT es> <20120710014622 DOT GE23449 AT malakian DOT lan> Date: Tue, 10 Jul 2012 10:45:18 +0200 Message-ID: Subject: Re: [geda-user] [PATCH] Allow to create metric Gerber and drill files, hopefully final version. From: Levente To: geda-user AT delorie DOT com Content-Type: multipart/alternative; boundary=90e6ba475d450430d004c475c0bf Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk --90e6ba475d450430d004c475c0bf Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Please forgive my ignorance, I think I missed something... but how can I force PCB to generate metric Gerbers? Is there any command line option? On Tue, Jul 10, 2012 at 3:46 AM, Andrew Poelstra wrote: > On Tue, Jul 10, 2012 at 02:43:18AM +0200, Gabriel Paubert wrote: > > On Mon, Jul 09, 2012 at 04:45:35PM -0700, Andrew Poelstra wrote: > > > On Tue, Jul 10, 2012 at 12:45:59AM +0200, Gabriel Paubert wrote: > > > > > > > > Thanks for pointing this out, I completely missed it, but I think > > > > that they point to the wrong 0 when looking at the source. > > > > > > > > > > Oh, good catch! > > > > > > > Corrected in the following, with a fix for octogonal apertures > > > > in which I did a mistake and ended up with two metric conversion > > > > specifications. Note that I have touched a bit the whitespace at > > > > the beginning of the comments so that they start with a tab like > > > > the surrounding code lines. > > > > > > > > > > Can you elaborate on this a bit? Specifically, do we need a new > > > test case to check on this (since our existing ones apparently > > > did not catch the bug)? > > > > Maybe, but I don't know how popular octogonal pads are. It seems > > to be a very specific feature of PCB, which may be useful for home > > etching, but subcontracting small PCB runs has become so cheap! > > > > The only time I tried to use octogonal pads, the photoplotter of my > > PCB manufacturer produced garbage, so I never use them. > > > > [Testing PCB] > > > > Ok, it seems the bug is not actually a bug since octogonal pads > > are procuded as polygons in Gerber output. I suspect that the > > OCTOGONAL case in aperture definitions is dead code. > > > > This is my suspicion too. I'll investigate. > > > > > > > > > > > > The fact that imperial Gerber have 2 orders or magnitude better > > > > resolution than the associated drill is a problem (25.4=E7=97=A0 ve= rsus > > > > 0.254=E7=97=A0). At least metric gives micrometer resolution for bo= th. > > > > > > > > > > Is this a problem with the spec, or our implementation? > > > > Our implementation, for losing the last digit. This causes visible > > centering problem in the smallest vias, and is a regression from > > earlier revisions. > > > > Sigh.. the problem is that keeping the last digit causes overflows. > We'll have to figure out a smarter solution. > > -- > Andrew Poelstra > Email: asp11 at sfu.ca OR apoelstra at wpsoftware.net > Web: http://www.wpsoftware.net/andrew > "You shouldn't trust every quote you read on the Internet." -- Socrates > > > --90e6ba475d450430d004c475c0bf Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Please forgive my ignorance, I think I missed something... but how can I fo= rce PCB to generate metric Gerbers? Is there any command line option?
On Tue, Jul 10, 2012 at 3:46 AM, Andrew Poelst= ra <= asp11 AT sfu DOT ca> wrote:
On Tue, Jul 10, 2012 at 02= :43:18AM +0200, Gabriel Paubert wrote:
> On Mon, Jul 09, 2012 at 04:45:35PM -0700, Andrew Poelstra wrote:
> > On Tue, Jul 10, 2012 at 12:45:59AM +0200, Gabriel Paubert wrote:<= br> > > >
> > > Thanks for pointing this out, I completely missed it, but I = think
> > > that they point to the wrong 0 when looking at the source. > > >
> >
> > Oh, good catch!
> >
> > > Corrected in the following, with a fix for octogonal apertur= es
> > > in which I did a mistake and ended up with two metric conver= sion
> > > specifications. Note that I have touched a bit the whitespac= e at
> > > the beginning of the comments so that they start with a tab = like
> > > the surrounding code lines.
> > >
> >
> > Can you elaborate on this a bit? Specifically, do we need a new > > test case to check on this (since our existing ones apparently > > did not catch the bug)?
>
> Maybe, but I don't know how popular octogonal pads are. It seems > to be a very specific feature of PCB, which may be useful for home
> etching, but subcontracting small PCB runs has become so cheap!
>
> The only time I tried to use octogonal pads, the photoplotter of my > PCB manufacturer produced garbage, so I never use them.
>
> [Testing PCB]
>
> Ok, it seems the bug is not actually a bug since octogonal pads
> are procuded as polygons in Gerber output. I suspect that the
> OCTOGONAL case in aperture definitions is dead code.
>

This is my suspicion too. I'll investigate.

> >
> > >
> > > The fact that imperial Gerber have 2 orders or magnitude bet= ter
> > > resolution than the associated drill is a problem (25.4=E7= =97=A0 versus
> > > 0.254=E7=97=A0). At least metric gives micrometer resolution= for both.
> > >
> >
> > Is this a problem with the spec, or our implementation?
>
> Our implementation, for losing the last digit. This causes visible
> centering problem in the smallest vias, and is a regression from
> earlier revisions.
>

Sigh.. the problem is that keeping the last digit causes overflows. We'll have to figure out a smarter solution.

--
Andrew Poelstra
Email: asp11 at sfu.ca OR a= poelstra at wpsoftware.= net
Web: =C2=A0 = http://www.wpsoftware.net/andrew
"You shouldn't trust every quote you read on the Internet." -= - Socrates



--90e6ba475d450430d004c475c0bf--