www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2020/09/25/10:58:08

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20161025;
h=subject:to:references:from:message-id:date:user-agent:mime-version
:in-reply-to:content-language;
bh=aa4vmZpBhdWZeLbm/8cgvOyjV4akMtvwunn+330fsTg=;
b=VAlvv1bK1jIQfDhgCXO9Vm2RW3qD7HXjvZAqkTEKo2ngVFxJMq4x5bQgqk6ALoL8Cn
Sce3jrS77HEf6+SVD+iYsN4C/lHs0Cn/2vvV15xUnKNZ5UrxZC78scvi4bL37ZFRq0PN
fHg8wOITPJEUbGpxibonFBaKUsq7N8U4agTq5SQ4qh+/9dmBQdVUUr1/Kkg4BUcl9DrQ
nGkc6wyq2duWLi5ZDMBhIOolOytjdW/H3MdJRTssflFhDR8zq3nONCfRQjo/wuIc9gLX
8a86g4BJhPaEp32Bk7Cvahg7zO2bfnCdExbflO2DVfVlEbIvIDd6sH7mZfirZYhAQCXS
Bu7g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:subject:to:references:from:message-id:date
:user-agent:mime-version:in-reply-to:content-language;
bh=aa4vmZpBhdWZeLbm/8cgvOyjV4akMtvwunn+330fsTg=;
b=pteYcrxT+PBEvEMMCqGAazYOyXJVovGBc19cTeJygQpV3IKgzmpX01nDARQIo4f8Su
pkfN75VErV01cl4wTSNJiRZC2YSgweGGnKy6D1tx0QdU13nrNlcIbUdKpMr3FYsinbPK
5r4w8xmoPokz3Ofib7fGTxblSQjDcWwsUqhIwxLWTNbFgidVWvn1g5y/Hljqhyk6kMuE
l/btzePLYEEHVadSwDHKnjviA6keo4mpGs/CQtHw0D/GCww4klTwyld/gwN3NVS1fZMn
G7aoCi63DKp30Pi/NZwJrDaeoklODBpnJUy9dC1sTToOR/qVMEMO9sLDA3qry8ArnhT5
+4Ag==
X-Gm-Message-State: AOAM530f4mDwORsT+KJvRkbky9ONrtnQ4f+sdCceCXkqHxcPNlxtJZn6
4zAnKMx3No07vPFvjNrwZLJ9LGArn+8=
X-Google-Smtp-Source: ABdhPJze5W0uyIQ8+cE0fWVAuEULE4HcYOjciv659HqDM1PhO0dw5YQcTWUtTvTAN00qfReAMXebSw==
X-Received: by 2002:ac8:594:: with SMTP id a20mr4827858qth.227.1601044737235;
Fri, 25 Sep 2020 07:38:57 -0700 (PDT)
Subject: Re: [geda-user] generate complex outline in pcb?
To: geda-user AT delorie DOT com
References: <ad8a00e4-d929-5ce7-5f71-917f61765a0d AT neurotica DOT com>
<CAHUm0tMddGdAPWaB3SEgCnY1SZVYrQX9+Fbr8OnBBBS2nt7Xrw AT mail DOT gmail DOT com>
<aa964644-b2b8-21c5-07ae-23d1c7ec012d AT gmail DOT com>
<CAJZxidAeg6AbWTZ-r-kGV4edGsT+0MjOQXo4ZLhfkftJ-1ifhA AT mail DOT gmail DOT com>
From: "Dr M C Nelson (drmcnelson AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Message-ID: <acc7b93b-a3e3-9304-aada-ffec97d95e33@gmail.com>
Date: Fri, 25 Sep 2020 10:38:56 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Thunderbird/68.11.0
MIME-Version: 1.0
In-Reply-To: <CAJZxidAeg6AbWTZ-r-kGV4edGsT+0MjOQXo4ZLhfkftJ-1ifhA@mail.gmail.com>
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

This is a multi-part message in MIME format.
--------------33294AC16C25D1076194450B
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit

Oh, I see.

I do that with the editor,  or by  writing a bash script, or a python 
script, to read the file and create a  new one with whatever changes I 
want to make.

I think I might have a python library from an old project that 
implements the file syntax specification from the manual

In any case, it would be a good idea.


On 9/25/20 9:27 AM, Chad Parker (parker DOT charles AT gmail DOT com) [via 
geda-user AT delorie DOT com] wrote:
> He also wants to scale it to be larger, if I read his message 
> correctly. Copying, sure, but not the scaling.
>
> On Fri, Sep 25, 2020, 09:25 Dr M C Nelson (drmcnelson AT gmail DOT com 
> <mailto:drmcnelson AT gmail DOT com>) [via geda-user AT delorie DOT com 
> <mailto:geda-user AT delorie DOT com>] <geda-user AT delorie DOT com 
> <mailto:geda-user AT delorie DOT com>> wrote:
>
>
>     Why can't you simply select, copy and paste it from the silk layer
>     to the outline layer?
>
>
>
>     On 9/25/20 1:24 AM, Erich Heinzle (a1039181 AT gmail DOT com
>     <mailto:a1039181 AT gmail DOT com>) [via geda-user AT delorie DOT com
>     <mailto:geda-user AT delorie DOT com>] wrote:
>>     I would get the image into inkscape, at which point you could either
>>
>>     1) if it is a non convex shape/logo, import into inkscape, do
>>     some edge detection, and apply a suitably fat stroke width to the
>>     path, export as graphic with a grown margin, then import the
>>     graphic, apply edge detection to the enlarged graphic, and export
>>     the paths with
>>
>>     inkscape2pcb
>>
>>     2) if it is a convex logo/shape, import graphic into inkscape,
>>     scale enough to create a grown border, do edge detection, and
>>     export path with
>>
>>     inkscape2pcb
>>
>>     See
>>
>>     https://inkscape.org/~erichVK5/%E2%98%85inkscape2pcb
>>
>>     Inkscape2pcb allows some scaling too.
>>
>>     The pcb-rnd version of inkscape2pcb will also export polygons as
>>     well as lines degining it's border in the footprint, after
>>     confirming that the path defines a simply polygon.
>>
>>     Regards,
>>
>>     Erich
>>
>>     On Fri, 25 Sep 2020 13:34 Dave McGuire (mcguire AT neurotica DOT com
>>     <mailto:mcguire AT neurotica DOT com>) [via geda-user AT delorie DOT com
>>     <mailto:geda-user AT delorie DOT com>], <geda-user AT delorie DOT com
>>     <mailto:geda-user AT delorie DOT com>> wrote:
>>
>>
>>            Hey folks.  I'm designing a board that needs to have a
>>         very complex
>>         outline.  Starting from an image file, I've gotten what I
>>         need into the
>>         silkscreen layer, but now I'd like to essentially take the
>>         shape that's
>>         there and draw a line 1mm or so around the outside of the
>>         entire shape,
>>         for the outline.
>>
>>            Can anyone suggest an automated way to do this? I'd just
>>         trace it,
>>         but the outline is, as I said, very complex.
>>
>>                        Thanks,
>>                        -Dave
>>
>>         -- 
>>         Dave McGuire, AK4HZ
>>         New Kensington, PA
>>
>


--------------33294AC16C25D1076194450B
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    Oh, I see.<br>
    <br>
    I do that with the editor,  or by  writing a bash script, or a
    python script, to read the file and create a  new one with whatever
    changes I want to make.<br>
    <br>
    I think I might have a python library from an old project that
    implements the file syntax specification from the manual<br>
    <br>
    In any case, it would be a good idea.<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 9/25/20 9:27 AM, Chad Parker
      (<a class="moz-txt-link-abbreviated" href="mailto:parker DOT charles AT gmail DOT com">parker DOT charles AT gmail DOT com</a>) [via <a class="moz-txt-link-abbreviated" href="mailto:geda-user AT delorie DOT com">geda-user AT delorie DOT com</a>] wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJZxidAeg6AbWTZ-r-kGV4edGsT+0MjOQXo4ZLhfkftJ-1ifhA AT mail DOT gmail DOT com">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      <div dir="auto">He also wants to scale it to be larger, if I read
        his message correctly. Copying, sure, but not the scaling.</div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Fri, Sep 25, 2020, 09:25 Dr
          M C Nelson (<a href="mailto:drmcnelson AT gmail DOT com"
            moz-do-not-send="true">drmcnelson AT gmail DOT com</a>) [via <a
            href="mailto:geda-user AT delorie DOT com" moz-do-not-send="true">geda-user AT delorie DOT com</a>]
          &lt;<a href="mailto:geda-user AT delorie DOT com"
            moz-do-not-send="true">geda-user AT delorie DOT com</a>&gt; wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div> <br>
            Why can't you simply select, copy and paste it from the silk
            layer to the outline layer?<br>
            <br>
            <br>
            <br>
            <div>On 9/25/20 1:24 AM, Erich Heinzle (<a
                href="mailto:a1039181 AT gmail DOT com" target="_blank"
                rel="noreferrer" moz-do-not-send="true">a1039181 AT gmail DOT com</a>)
              [via <a href="mailto:geda-user AT delorie DOT com"
                target="_blank" rel="noreferrer" moz-do-not-send="true">geda-user AT delorie DOT com</a>]
              wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="auto">
                <div dir="auto">I would get the image into inkscape, at
                  which point you could either</div>
                <div dir="auto"><br>
                </div>
                <div dir="auto">1) if it is a non convex shape/logo,
                  import into inkscape, do some edge detection, and
                  apply a suitably fat stroke width to the path, export
                  as graphic with a grown margin, then import the
                  graphic, apply edge detection to the enlarged graphic,
                  and export the paths with</div>
                <div dir="auto"><br>
                </div>
                inkscape2pcb
                <div dir="auto"><br>
                </div>
                <div dir="auto">2) if it is a convex logo/shape, import
                  graphic into inkscape, scale enough to create a grown
                  border, do edge detection, and export path with</div>
                <div dir="auto"><br>
                </div>
                <div dir="auto">inkscape2pcb</div>
                <div dir="auto"><br>
                </div>
                <div dir="auto">See</div>
                <div dir="auto"><br>
                </div>
                <div dir="auto"><a
                    href="https://inkscape.org/~erichVK5/%E2%98%85inkscape2pcb"
                    target="_blank" rel="noreferrer"
                    moz-do-not-send="true">https://inkscape.org/~erichVK5/%E2%98%85inkscape2pcb</a><br>
                </div>
                <div dir="auto"><br>
                </div>
                <div dir="auto">Inkscape2pcb allows some scaling too.</div>
                <div dir="auto"><br>
                </div>
                <div dir="auto">The pcb-rnd version of inkscape2pcb will
                  also export polygons as well as lines degining it's
                  border in the footprint, after confirming that the
                  path defines a simply polygon.</div>
                <div dir="auto"><br>
                </div>
                <div dir="auto">Regards,</div>
                <div dir="auto"><br>
                </div>
                <div dir="auto">Erich</div>
              </div>
              <br>
              <div class="gmail_quote">
                <div dir="ltr" class="gmail_attr">On Fri, 25 Sep 2020
                  13:34 Dave McGuire (<a
                    href="mailto:mcguire AT neurotica DOT com" target="_blank"
                    rel="noreferrer" moz-do-not-send="true">mcguire AT neurotica DOT com</a>)
                  [via <a href="mailto:geda-user AT delorie DOT com"
                    target="_blank" rel="noreferrer"
                    moz-do-not-send="true">geda-user AT delorie DOT com</a>],
                  &lt;<a href="mailto:geda-user AT delorie DOT com"
                    target="_blank" rel="noreferrer"
                    moz-do-not-send="true">geda-user AT delorie DOT com</a>&gt;
                  wrote:<br>
                </div>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
                     Hey folks.  I'm designing a board that needs to
                  have a very complex <br>
                  outline.  Starting from an image file, I've gotten
                  what I need into the <br>
                  silkscreen layer, but now I'd like to essentially take
                  the shape that's <br>
                  there and draw a line 1mm or so around the outside of
                  the entire shape, <br>
                  for the outline.<br>
                  <br>
                     Can anyone suggest an automated way to do this? 
                  I'd just trace it, <br>
                  but the outline is, as I said, very complex.<br>
                  <br>
                                 Thanks,<br>
                                 -Dave<br>
                  <br>
                  -- <br>
                  Dave McGuire, AK4HZ<br>
                  New Kensington, PA<br>
                </blockquote>
              </div>
            </blockquote>
            <br>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>

--------------33294AC16C25D1076194450B--

- Raw text -


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