delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2012/05/18/07:43:06

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=google.com; s=20120113;
h=mime-version:date:message-id:subject:from:to:content-type
:x-gm-message-state;
bh=zgKqJisgfNIS4Xdva6opYCqvXOQ8SuIdhvjqrudmXCU=;
b=hXtYg7eOGJ5qPzFY2gRosD7x3423QW0RXAV3Bdtb2MaR+MhIpRGAbEa2qfj1PZqI7+
nz4q9WxLoYrVzIivB5gybOze1vmaMbLgAWoNtLWXXK+MlBd5YS/GtjCUHq7bDI+9B2um
UT/i3KRjHmDkuPacq30Z7RdC9tIbnqrZk6Y7u2GF9DAzCp0Uq1macUfvTyC8CDbhHmFH
Q0o9sW+WeaGf6iaLJcCU06ZoDoSTmevC/8Ku5z22QghTGaCl7nJG27mqxt0ulEs08TWK
0TW+0qj4glm9MQQQISrz8QFVSMpdF2VgnDYS1PkN8A/lMhNbKPwbYmlItUoIvSluRsBf
ideg==
MIME-Version: 1.0
Date: Fri, 18 May 2012 04:14:46 -0700
Message-ID: <CAN0Jx-83czc=HKnTq94X=-oKp6wV7nxmKD+3334P2TgcoCK3cQ@mail.gmail.com>
Subject: [geda-user] pscads.py: OpenSCAD like PCB footprint generator
From: Russell Dill <Russ DOT Dill AT asu DOT edu>
To: geda-user AT delorie DOT com
X-Gm-Message-State: ALoCoQntrhIOrb5MBWWblHhzgFjxbklCgxXePfLTShdGW4wMgPsfvG6kpqZZbM5vNCHj6/guRsGP
Reply-To: geda-user AT delorie DOT com

I've really taken to the OpenSCAD grammar for building up 3D and 2D
objects, so I've decided to make a first cut at a python library that
allows one to do the same for creating PCB footprints. Its not
actually an OpenSCAD parser, but just a set of python functions made
to look like OpenSCAD.

http://www.openscad.org/
https://github.com/russdill/pscad

small snippet:

silk(w=silk_w) & (
        square(courtyard, center=True) |

        translate([-courtyard[0] / D(2), -pitch * (n[1] - 1) / D(2)]) &
        left(silk_w * D(2)) &
        line([0, pitch * D(2)], center=True)
)

(a silk square is drawn and a small line representing pin 1)

- Raw text -


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