Skip to content

triffid/eagle-pcb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brd2scad - Eagle PCB to OpenSCAD 3D model converter

Examples

Board

Board

OpenSCAD Render

Render

Installation

Clone this repository into your OpenSCAD library folder (OpenSCAD->File->Show Library Folder)

Add "brd2scad" script into your path (eg ln -s $PWD/brd2scad ~/bin/)

Usage

  1. Export GERBERs from your eagle PCB project using eg. Hackvana's eagle-7.cam

  2. brd2scad yourproject.brd

  3. openscad yourproject.scad

Contributing

I haven't even tried to generate footprints for most of the parts in Eagle's default library. I've concentrated solely on footprints that actually show up in the projects I use this on. Consequently, there are vastly more omissions than available footprints, but they're really easy to add!

Simply create a file named "yourlibrary.scad" in this folder, include eagle-pcb/common.scad and make a module for your part.

Please have a scroll through common.scad and check the other examples before sending pull requests!

OpenSCAD will generate warnings for missing library.scads and also missing modules but still generate a render with unavailable parts invisible, so you can rely on OpenSCAD's console log to guide you.

Bugs & TODO

  • Tested with Eagle 7.6, Eagle 8 and Eagle 9.
  • Does not correctly handle boards with arcs on the border, this type of board will cause the PCB substrate to look broken and the components to be misaligned with their pads.
  • Haven't even attempted to make things robust or comprehensive, just fixed issues as they've appeared.
  • Would be nice to generate 3D solely from the brd, at the moment we require gerbers for all the board layers and use the brd just for component information

About

Eagle PCB to OpenSCAD 3D model converter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published