www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2013/06/27/03:25:48

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-SourceIP: 89.173.57.57
Message-ID: <51CBE8B3.9060701@prochac.sk>
Date: Thu, 27 Jun 2013 09:24:35 +0200
From: Milan Prochac <milan AT prochac DOT sk>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7
MIME-Version: 1.0
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] LP699502-openscad-exporter
References: <AD211BF7-2641-4C0D-A8AB-7A39DE239FB0 AT jump-ing DOT de> <51CA371C DOT 10507 AT prochac DOT sk> <kqdhff$iia$1 AT ger DOT gmane DOT org>
In-Reply-To: <kqdhff$iia$1@ger.gmane.org>
X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00
autolearn=ham version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on gw-milan.doma.local
Reply-To: geda-user AT delorie DOT com

On 26. 6. 2013 3:51, Kai-Martin Knaak wrote:
> Is your exporter available for download somewhere?

Yes, now it is: 
http://static.bastl.sk/pcb/0001-OpenSCAD-export-filter-0.1.patch

Apply the patch to current master/HEAD  and build the PCB 
(autogen,configure,make).
The filter is named "scad", dialog options are self-explaining (I guess).

Please increase the object limits in OpenSCAD - exported layout is quite 
complex and limits are very low.

The filter is not fully tested, so some issues can appear. One of them 
is imperfect board shape with openings (it's problem of OpenSCAD 
preview, I guess - result is perfect in STL export). Again, some 
motivation images:

Modified test design: http://static.bastl.sk/pcb/test-pcb1.png
The OpenSCAD complete model (preview in OpenSCAD): 
http://static.bastl.sk/pcb/test-scad3.png
The same, bottom side (preview in OpenSCAD): 
http://static.bastl.sk/pcb/test-scad4.png
And the model exported to STL and imported into FreeCAD: 
http://static.bastl.sk/pcb/test-stl1.png

Regarding models:
Place all models into <path_to_pcb_binary>/../share/pcb/scad/models/  
directory. Models should have all dimensions in milimeters, they should 
lie on XY plane with center on Z axis and they should have the same 
orientation as footprint.

Model has to generate objects.  if you define your model as OpenSCAD 
model, you have to instantiate it (this will be changed). Example model: 
http://static.bastl.sk/pcb/0805.scad

The file with model should have the same name as contents of element's 
"Description" field plus .scad extension. Also the footprint with the 
same name (and with .fp extension) should exist somewhere in PCB 
footprint library. The footprint is required for precise detection of 
rotation angle. If the footprint does not exist, the alternate method is 
used (taken from BOM export filter), but this is not tested yet. For 
example, if element has Description 0805, footptint file 0805.fp and 
model file 0805.scad should exist on proper locations.

There is more possibilities how to handle 3D models. It is very similar 
to model handling in VRML filter (see http://pcb.bastl.sk), but it is 
not tested yet.

I will be AFK until end of week, I will fix remaining issues next week.

Milan


> ---<)kaiamrtin(>---

- Raw text -


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