www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/03/08/08:22:49

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Mailer: exmh version 2.8.0 04/21/2012 (debian 1:2.8.0~rc1-2) with nmh-1.5
X-Exmh-Isig-CompType: repl
X-Exmh-Isig-Folder: inbox
From: karl AT aspodata DOT se
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] footprint conversions (was: Valve / nixie symbols)
In-reply-to: <CAHUm0tPARUt=rxYSycVsxXnTCfSGahGCWwE637V_RVePuF_Zdw@mail.gmail.com>
References: <56DCAE39 DOT 7020204 AT m0n5t3r DOT info> <nbijrc$t4t$1 AT ger DOT gmane DOT org> <CAHUm0tNohrmDf2oLQAWer_LYSPj9DZzquTdYM-kTgpaM9qO5Lg AT mail DOT gmail DOT com> <20160307015049 DOT 097EF8153704 AT turkos DOT aspodata DOT se> <CAHUm0tNztZc5nNTtC6in0MdihZnmkX0mG4UBmquSc+cT4nzEeQ AT mail DOT gmail DOT com> <20160307123849 DOT AF59B8153706 AT turkos DOT aspodata DOT se> <CAHUm0tPMRfV9ub3PXpKAGs9jEWKLJAZxnnwV_OGt38sHkMVv_g AT mail DOT gmail DOT com> <nbkgc4$rqd$1 AT ger DOT gmane DOT org> <CAHUm0tPARUt=rxYSycVsxXnTCfSGahGCWwE637V_RVePuF_Zdw AT mail DOT gmail DOT com>
Comments: In-reply-to "Erich Heinzle (a1039181 AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
message dated "Tue, 08 Mar 2016 21:35:36 +1030."
Mime-Version: 1.0
Message-Id: <20160308132232.52A0E8153705@turkos.aspodata.se>
Date: Tue, 8 Mar 2016 14:22:32 +0100 (CET)
X-Virus-Scanned: ClamAV using ClamSMTP
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

Erich Heinzle:
> the problem to solve next is how to render polygons (from Eagle footprints)
> and trapezoids (in kicad footprints) in the converted gEDA footprint.

Do you have examples as png/jpg or something ?

> I think I will have to build them with concentric chains of end to end
> pads.

If you accept roundings at the corners that would work, if you want
sharp corners !=90° && < 180°, then I'm at loss since pcb don't support
polygons in element files.

I think it's sane to require:
. closed polygon (first point connects with last point)
. no self-intersections
. no holes

One could have a chain of incr. thicker pads, starting with the
thinnest on the polygon perimeter and the thickest at the polygon
center - or
 one could fill the interiour first, and then fill the corners to some
minimun radius.

I guess it's more economical to fill the interiour first, but filling
the perimeter first gives you the same corner radius for all corners.

Using perimeter first and filling a square (for ease of modelling)
using a corner radius r, first line is 2*r thick. Using an overlap
of o, the next line will have thickness of 2*R, where
sqrt(2)*2*r - o + R = sqrt(2)*R # think going from corner to next line center
i.e. (sqrt(2)2r - o)/(sqrt(2) - 1) = R, or if o = f*r
next line with is 2R = (2sqrt(2) - f)/(sqrt(2) - 1) * 2*r or
R/r = k = (2sqrt(2) - f)/(sqrt(2) - 1), and if h = square height
then h/2 >= k^(n-1) * r, n = number of lines (pads)

soo, if h = 10mm, r = 0.3mm, o = 0.1; then we need 3 lines (pads)
around to fill the square (I think...).

Using center first, we put a circle in the center and then fill the 
corners to some limit.

I'd think I like perimeter first even tough there will be a lot
of overlapping pads along the edges.

> Luckily, not many eagle and kicad footprints use them. Once
> implemented, it will work for kicad and eagle sourced footprints.

If there only is a few of them, maybe it's feasable to manually make
new fp's for them.

Regards,
/Karl Hammar

-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019