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: From: "Dr M C Nelson (drmcnelson AT gmail DOT com) [via geda-user AT delorie DOT com]" Message-ID: 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: Content-Type: multipart/alternative; boundary="------------33294AC16C25D1076194450B" Content-Language: en-US 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 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 > ) [via 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 > ) [via 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 >> ) [via 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 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) [via geda-user AT delorie DOT com] <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) [via 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


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) [via geda-user AT delorie DOT com], <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--