www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2014/11/20/12:43:12

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-SourceIP: 85.216.233.42
Message-ID: <546E27F0.2010501@prochac.sk>
Date: Thu, 20 Nov 2014 18:42:08 +0100
From: Milan Prochac <milan AT prochac DOT sk>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] PCB and 3D Views
References: <CALT8Ef7W0XRHeXUEtLQyGJmWsUQ7PWgF3S+PjfcvbfmjDzwfqw AT mail DOT gmail DOT com> <5468E8B2 DOT 9090604 AT prochac DOT sk> <m4dkif$dt2$1 AT ger DOT gmane DOT org> <546A6A3F DOT 3040606 AT xs4all DOT nl> <20141117233312 DOT 17d7d4a8 AT jive DOT levalinux DOT org> <546DFB23 DOT 7000003 AT prochac DOT sk> <m4l6cm$vu3$1 AT ger DOT gmane DOT org>
In-Reply-To: <m4l6cm$vu3$1@ger.gmane.org>
X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham
version=3.3.2
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on samuel.doma.local
Reply-To: geda-user AT delorie DOT com

On 20. 11. 2014 17:59, Kai-Martin Knaak wrote:
> Milan Prochac wrote:
>
>> Aligned with current  master/HEAD, there are some sample models,
>> documentation (chapter in pcb.pdf) and small example, which should work
>> out-of box, with result like this:
>> http://pcb.bastl.sk/static/OpenSCAD.png
> Really curious:
> How does this approach communicate the identity, position and orientation
> of components?

Identity: the footprint name should be stored in the Description field 
(as far i remember, gsch2pcb does this), model name should have the same 
name as footprint (extensions are removed/added)
Position: it is stored in the PCB layout
Orientation: the rotation is calculated from position of the first 
pin/pad on component instantiated on board and from position of first 
pin/pad in footprint file (footprint name should be stored in 
Description field).

This method does not touch the existing codebase and internal 
structures. Having the rotation stored in the PCB layout, the filter 
code can be reduced by one half...

Milan

> ---<)kaimartin(>---

- Raw text -


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