Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Patrick Doyle
On Thu, Nov 18, 2010 at 10:01 PM, kai-martin knaak k...@familieknaak.de wrote: Looks like there is no open 3D exchange format that fits the need of pcb: a) render a beautiful image of a populated board b) integrate pcb in a 3D work-flow to fit the board into some tight space. The

gEDA-user: current working file name in gschemrc

2010-11-19 Thread Kai-Martin Knaak
Currently, my print command in gschemrc is (print-command lp -d PDF) This prints a PDF of the current schematic via cups-pdf. The PDF file appears in $HOME/PDF/ as job_1296-untitled_document.pdf I'd like to replace this with the name of the schematic. The lp command can set

gEDA-user: exporting single pcb layers

2010-11-19 Thread chrysn
hi geda-users, in the process of cnc-milling a pcb with a custom shape using pcb2gcode [1], i created a polygon on a separate layer. in the following processing steps, i need a gerber file that contains just that polygon (without holes for the pins, becaus they don't belong to the outline). my

Re: gEDA-user: exporting single pcb layers

2010-11-19 Thread timecop
       sed -e 's/^\tPin/# /' -e 's/^\t\(SymbolLine\|Line\)/# /' -e 's/^Via/# /' In my windows PCB CAD, I click 'Export Gerber' and click a layer. If I don't want vias or pins there, I uh,, click a checkbox. GUIs exist for a reason. This is one of those good reasons. -- 1966 called, wants its

Re: gEDA-user: exporting single pcb layers

2010-11-19 Thread John Doty
On Nov 19, 2010, at 7:56 AM, timecop wrote: sed -e 's/^\tPin/# /' -e 's/^\t\(SymbolLine\|Line\)/# /' -e 's/^Via/# /' In my windows PCB CAD, I click 'Export Gerber' and click a layer. What if there's no checkbox for the function you need? If I don't want vias or pins there, I uh,,

Re: gEDA-user: exporting single pcb layers

2010-11-19 Thread Kovacs Levente
On Fri, 19 Nov 2010 23:56:50 +0900 timecop time...@gmail.com wrote: In my windows PCB CAD I think the OP wants information about gEDA's PCB editor and not your PCB CAD. Your comment is irrelevant. -- Kovacs Levente leventel...@gmail.com Voice: +36705071002

Re: gEDA-user: exporting single pcb layers

2010-11-19 Thread Stefan Salewski
On Fri, 2010-11-19 at 23:56 +0900, timecop wrote: sed -e 's/^\tPin/# /' -e 's/^\t\(SymbolLine\|Line\)/# /' -e 's/^Via/# /' In my windows PCB CAD, I click 'Export Gerber' and click a layer. If I don't want vias or pins there, I uh,, click a checkbox. GUIs exist for a reason. This is

gEDA-user: PCB+GL resistor p0rn

2010-11-19 Thread Peter Clifton
http://www2.eng.cam.ac.uk/~pcjc2/geda/pcb+gl_3d/pcb+gl_3d_packages_mockup3.png http://www2.eng.cam.ac.uk/~pcjc2/geda/pcb+gl_3d/pcb+gl_3d_packages_mockup4.png Perhaps pixel shaders and bump mapping is a little overkill for a few resistors, but it has kept me amused for a while. I'm working on a

Re: gEDA-user: exporting single pcb layers

2010-11-19 Thread Stephan Boettcher
chrysn chr...@fsfe.org writes: hi geda-users, in the process of cnc-milling a pcb with a custom shape using pcb2gcode [1], i created a polygon on a separate layer. in the following processing steps, i need a gerber file that contains just that polygon (without holes for the pins, becaus

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread Peter Clifton
On Fri, 2010-11-19 at 01:29 +0100, kai-martin knaak wrote: Peter Clifton wrote: stl (very nice) IMHO, stl is a mesh only format. That is, everything is made of triangles -- no squares, no circles, no real curvatures. There are no macros, no loops, or repetitions. That suits me just

Re: gEDA-user: PCB+GL resistor p0rn

2010-11-19 Thread Richard Barlow
On Fri, 2010-11-19 at 17:21 +, Peter Clifton wrote: http://www2.eng.cam.ac.uk/~pcjc2/geda/pcb+gl_3d/pcb+gl_3d_packages_mockup3.png http://www2.eng.cam.ac.uk/~pcjc2/geda/pcb+gl_3d/pcb+gl_3d_packages_mockup4.png Wow, they look amazing! Perhaps pixel shaders and bump mapping is a little

Re: gEDA-user: PCB+GL resistor p0rn

2010-11-19 Thread Peter Clifton
On Fri, 2010-11-19 at 17:30 +, Richard Barlow wrote: On Fri, 2010-11-19 at 17:21 +, Peter Clifton wrote: http://www2.eng.cam.ac.uk/~pcjc2/geda/pcb+gl_3d/pcb+gl_3d_packages_mockup3.png http://www2.eng.cam.ac.uk/~pcjc2/geda/pcb+gl_3d/pcb+gl_3d_packages_mockup4.png Wow, they look

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Peter Clifton
On Fri, 2010-11-19 at 06:15 -0500, Patrick Doyle wrote: Not knowing anything of which I speak (write?), would COLLADA (https://collada.org/mediawiki/index.php/COLLADA_-_Digital_Asset_and_FX_Exchange_Schema) fit the bill? I just happened to stumble across it last week on something totally

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Peter Clifton
On Fri, 2010-11-19 at 17:43 +, Peter Clifton wrote: On Fri, 2010-11-19 at 06:15 -0500, Patrick Doyle wrote: Not knowing anything of which I speak (write?), would COLLADA (https://collada.org/mediawiki/index.php/COLLADA_-_Digital_Asset_and_FX_Exchange_Schema) fit the bill? I just

Re: gEDA-user: New branch of PCB

2010-11-19 Thread Peter TB Brett
On Tuesday 16 Nov 2010 11:09:34 timecop wrote: With TopoR having a freeware version for 2 layers and up to 256 nets (or some other fairly high for 'hobby' use limitation), there's not really any point on bothering improving built in autorouter... Even this single sentence contains so many

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Patrick Doyle
On Fri, Nov 19, 2010 at 1:23 PM, Peter Clifton pc...@cam.ac.uk wrote: On Fri, 2010-11-19 at 17:43 +, Peter Clifton wrote: On Fri, 2010-11-19 at 06:15 -0500, Patrick Doyle wrote: Not knowing anything of which I speak (write?), would COLLADA

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread Colin D Bennett
On Fri, 19 Nov 2010 17:27:45 + Peter Clifton pc...@cam.ac.uk wrote: On Fri, 2010-11-19 at 01:29 +0100, kai-martin knaak wrote: Peter Clifton wrote: stl (very nice) IMHO, stl is a mesh only format. That is, everything is made of triangles -- no squares, no circles, no real

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread John Griessen
On 11/19/2010 03:06 PM, Colin D Bennett wrote: Through-hole parts tend to have more round shapes that would be much more expensive to accurately model with triangle meshes: cylindrical resistors, disc-shaped ceramic capacitors, etc. STL seems to work fine for those shapes - your tool just

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Colin D Bennett
On Fri, 19 Nov 2010 15:24:05 -0500 Patrick Doyle wpds...@gmail.com wrote: On Fri, Nov 19, 2010 at 1:23 PM, Peter Clifton pc...@cam.ac.uk wrote: On Fri, 2010-11-19 at 17:43 +, Peter Clifton wrote: Perhaps it ranks as nice to have, especially if there is some good modelling software

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Peter Clifton
On Fri, 2010-11-19 at 15:24 -0500, Patrick Doyle wrote: So then why not use COLLADA and blender? (I'm not trying to push for this, or to pick a fight, I'm just curious and trying to learn something totally new to me.) 1. KiCad 2. VRML is easier to implement perhaps? 3. Blender can also save

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread Peter Clifton
On Fri, 2010-11-19 at 13:06 -0800, Colin D Bennett wrote: That suits me just fine.. OpenGL _likes_ rendering triangles, and any other geometry primitives are extra work to implement ;) But wouldn't support for higher-level shapes be superior to triangle meshes for high-quality renderings

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Peter Clifton
On Fri, 2010-11-19 at 14:07 -0800, Colin D Bennett wrote: It has to be mentioned that Blender is free and open source but Google Sketchup is not. I took that as known, but I don't disprove of using good commercial software to do a job. I find Blender quite challenging to work with. -- Peter

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Philipp Klaus Krause
Am 19.11.2010 23:07, schrieb Colin D Bennett: It has to be mentioned that Blender is free and open source but Google Sketchup is not. Let's not forget other free software, like wings3d, which may be less powerful compared to blender, but is much more newbie-friendly, and quite good for

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Rubén Gómez Antolí
Hi: El 19/11/10 23:07, Colin D Bennett escribió: On Fri, 19 Nov 2010 15:24:05 -0500 Patrick Doylewpds...@gmail.com wrote: On Fri, Nov 19, 2010 at 1:23 PM, Peter Cliftonpc...@cam.ac.uk wrote: On Fri, 2010-11-19 at 17:43 +, Peter Clifton wrote: Perhaps it ranks as nice to have,

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread Russell Shaw
On 20/11/10 10:02, Peter Clifton wrote: On Fri, 2010-11-19 at 13:06 -0800, Colin D Bennett wrote: That suits me just fine.. OpenGL _likes_ rendering triangles, and any other geometry primitives are extra work to implement ;) But wouldn't support for higher-level shapes be superior to

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread Peter Clifton
On Sat, 2010-11-20 at 11:01 +1100, Russell Shaw wrote: Are you using a spatial data structure to omit emitting polygons for off-screen components? PCB does that (spatial data-structures) already for rendering layers, so yes. With the 3D perspective view, I fall back to rendering the whole

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread Tom Sylla
It looks like you are almost to the next step, but probably the biggest value of having good 3d representations is the ability to do clearance checking as a DRC. This is not just visualization, it is rule-driven placement and flagging of errors when you place components in conflict with each

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread Russell Shaw
On 20/11/10 11:43, kai-martin knaak wrote: John Griessen wrote: STL seems to work fine for those shapes - your tool just chooses triangles that are long and skinny to accurately model the side of a cylinder for instance. ... and the file size explodes. If the wires of thru hole components

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread kai-martin knaak
Peter Clifton wrote: I'm coming round to the idea that 3D is more than just eye candy if we do it nicely. yes! It helps visualise component placement and layout issues far more readily than just looking at flat layers can do. Even better: It aids the process of enclosing design in a very

Re: gEDA-user: PCB+GL resistor p0rn

2010-11-19 Thread kai-martin knaak
Peter Clifton wrote: I'm sure one day we'll be able to export the whole thing to a format which can be used in blender for those times you need super realistic renderings ;) VRML is already such a format :-) I wish I knew blender This close-up of a laser diode package shows what blender

Re: gEDA-user: STEP Format? [WAS: Re: PCB+GL+3D Packages??]

2010-11-19 Thread Peter Clifton
On Sat, 2010-11-20 at 11:59 +1100, Russell Shaw wrote: If fewer polygons are used but with decent shading, the main effect is that the silhouette has a few visible corners. That wouldn't matter much for resistors. http://en.wikipedia.org/wiki/Gouraud_shading

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread kai-martin knaak
Bert Timmerman wrote: http://openscad.org/ And the beginning of an OpenSCAD exporter for pcb, on top of a recent (current) clone of the pcb git repository: https://github.com/bert/pcb-openscad Please give me your thoughts and opinions on both. I see a nice way to produce 3D models

Re: gEDA-user: PCB+GL resistor p0rn

2010-11-19 Thread Peter Clifton
On Sat, 2010-11-20 at 02:39 +0100, kai-martin knaak wrote: Did I mention, that mesh formats are a one way road, when it comes to construction? (Please tell me, that I don't need to make that point over and over again ;-) Got it ;) -- Peter Clifton Electrical Engineering Division,

Re: gEDA-user: PCB+GL resistor p0rn

2010-11-19 Thread kai-martin knaak
Peter Clifton wrote: when PCB+GL+3D lands and users start creating models). ^ I'd love to see PCB+GL enter the main repo rather than wait until 3D is mature enough, too. ---)kaimartin( -- Kai-Martin Knaak Öffentlicher PGP-Schlüssel:

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Peter Clifton
On Fri, 2010-11-19 at 23:43 +0100, Philipp Klaus Krause wrote: Let's not forget other free software, like wings3d, which may be less powerful compared to blender, but is much more newbie-friendly, and quite good for modelling (which it focuses on more than blender). AFAIK it has wuite a

Re: gEDA-user: PCB+GL resistor p0rn

2010-11-19 Thread Peter Clifton
On Sat, 2010-11-20 at 03:00 +0100, kai-martin knaak wrote: Peter Clifton wrote: when PCB+GL+3D lands and users start creating models). ^ I'd love to see PCB+GL enter the main repo rather than wait until 3D is mature enough, too. I've been slowly tinkering with

Re: gEDA-user: current working file name in gschemrc

2010-11-19 Thread kai-martin knaak
Paul Tan wrote: (get-selected-filename) is a Gschem Scheme procedure which returns the current page filename as string. Unfortunately, my gschem segfaults right away, if gschemrc contains the (get-selected-filename) procedure. It segfaults even if the line is reduced to (define name

Re: gEDA-user: a different approach to 3D modeling

2010-11-19 Thread Peter Clifton
On Sat, 2010-11-20 at 02:05 +, Peter Clifton wrote: Wings3D can export to most if not all the formats I'm interested in, but now you make me feel stupid.. I couldn't figure out how to get started with it other than opening existing models. Since you say it is newbie friendly, I'll go back

Re: gEDA-user: PCB+GL resistor p0rn

2010-11-19 Thread timecop
3D renderings of through-hole components is great and all, but this IS 2010, anyone still using through-hole stuff can just use Fritzing or something. How about adding relevant features to PCB, like boolean operations on copper pours that aren't a hack or ... hey, who am I kidding. -tc On Sat,

Re: gEDA-user: current working file name in gschemrc

2010-11-19 Thread John Doty
On 11/19/2010 07:18 PM, kai-martin knaak wrote: Paul Tan wrote: (get-selected-filename) is a Gschem Scheme procedure which returns the current page filename as string. Unfortunately, my gschem segfaults right away, if gschemrc contains the (get-selected-filename) procedure. It

Re: gEDA-user: current working file name in gschemrc

2010-11-19 Thread Paul Tan
Hi Kai-Martin Knaak, Oh, I remember there is a bug in the gschem/src/g_funcs.c file. You may want to change the get_selected_filename function in g_funcs.c file, (around line number 299), as follows: /* = */ SCM

Re: gEDA-user: current working file name in gschemrc

2010-11-19 Thread Paul Tan
Hi Kai-Martin Knaak, (depending on your email system, some lines in the code below may be just a long single line. So I am re-sending with the fix for this. Hope it comes out ok now) Oh, I remember there is a bug in the gschem/src/g_funcs.c file. You may want to change the get_selected_filename

Re: gEDA-user: current working file name in gschemrc

2010-11-19 Thread kai-martin knaak
John Doty wrote: Well, it shouldn't segfault, but I'm not surprised you can't evaluate it in gschemrc before there is a selected file. What did you expect to happen? From the doxygen comment: * This function gets the whole filename of the current schematic. * Specifically, the

Re: gEDA-user: current working file name in gschemrc

2010-11-19 Thread kai-martin knaak
Paul Tan wrote: Hope it helps. I still get segfaults. My get_selected_filename procedure looks like this now: /--- SCM get_selected_filename(GSCHEM_TOPLEVEL *w_current) { gchar* s; SCM return_value; exit_if_null(w_current); s =

Re: gEDA-user: current working file name in gschemrc

2010-11-19 Thread John Doty
On 11/19/2010 08:59 PM, kai-martin knaak wrote: John Doty wrote: Well, it shouldn't segfault, but I'm not surprised you can't evaluate it in gschemrc before there is a selected file. What did you expect to happen? From the doxygen comment: * This function gets the whole filename

gEDA-user: Calling Xspice code models through gnetlist

2010-11-19 Thread clif
Say, does anyone know how to get spice-sdb or the like to pass non-default port types to ngspice for the xspice code models? Most of the standard code models default to single ended sources eg. %v(1) where the %v() is optional, but often you want a differential input. This means you double

Re: gEDA-user: current working file name in gschemrc

2010-11-19 Thread Peter TB Brett
On Friday 19 November 2010 12:22:05 Kai-Martin Knaak wrote: I'd like to replace this with the name of the schematic. The lp command can set the base name of the file with the option -t. But how would I teach gschemrc to automatically fill in the file name of the current schematic? Is there