summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-01-16Skip over a strange excellon statementGarret Fick2-3/+31
2016-01-16Fix converting polygons to outlines for macrosGarret Fick1-1/+3
2016-01-08More stability fixes for poorly constructed filesGarret Fick2-4/+8
2016-01-05Merge pull request #53 from curtacircuitos/pcb_interfacePaulo Henrique Silva20-503/+2438
Add PCB interface
2016-01-01Refactor a littleHamilton Kibbe5-74/+68
pulled all rendering stuff out of the pcb/layer objects
2015-12-30Render polygon flashesGarret Fick3-3/+32
2015-12-30Work with Diptrace that calls things D3 not D03Garret Fick1-3/+3
2015-12-30Support KiCad format statement where FMAT,2 is 2:4 with inchGarret Fick2-0/+5
2015-12-30Render primitives for some aperture macrosGarret Fick3-5/+56
2015-12-30First time any macro rendersGarret Fick5-0/+125
2015-12-28Wrongly using mil def for mmGarret Fick1-1/+1
2015-12-25Identify flashes and bounding box without apertureGarret Fick1-3/+133
2015-12-22Python3 fixHamilton Kibbe1-2/+2
2015-12-22Add PCB interfaceHamilton Kibbe20-472/+2413
this incorporates some of @chintal's layers.py changes PCB.from_directory() simplifies loading of multiple gerbers the PCB() class should be pretty helpful going forward... the context classes could use some cleaning up, although I'd like to wait until the freecad stuff gets merged, that way we can try to refactor the context base to support more use cases
2015-12-20Allow renderer to write to memory per #38Hamilton Kibbe5-11/+35
Some updates to rendering colors/themes
2015-12-20Merge pull request #52 from curtacircuitos/negative_soldermaskPaulo Henrique Silva13-120/+283
Allow negative solder mask rendering per #50.
2015-12-20Merge branch 'negative_soldermask' of github.com:curtacircuitos/pcb-tools ↵Hamilton Kibbe1-0/+1
into negative_soldermask
2015-12-20Clean up negative render codeHamilton Kibbe1-76/+69
2015-12-19Update ReadmeHamilton Kibbe1-0/+1
2015-12-19Allow negative render of soldermask per #50Hamilton Kibbe12-106/+275
Update example code and rendering to show change
2015-12-19Parse misc nc drill filesGarret Fick5-12/+300
2015-12-16Fix drawing arcs. Dont crash for arcs with rectangular apertures. Fix crash ↵Garret Fick3-4/+18
with board size of zero for only one drill
2015-12-06Add test case to start working on a fixPaulo Henrique Silva1-1/+4
2015-12-03Move the coordinate matching to the beginning since most of the items are ↵Garret Fick1-9/+8
coordinates. For large files, this decreases total time by 10-20%
2015-12-02Make the hit accessible from the drawable Hit, fix crash with cario drawing rectGarret Fick3-3/+4
2015-11-23Fix AMParamStmt to_gerber to write changes back.Paulo Henrique Silva2-3/+3
AMParamStmt was not calling to_gerber on each of its primitives on his own to_gerber method. That way primitives that changes after reading, such as when you call to_inch/to_metric was failing because it was writing only the original macro back.
2015-11-23More fixes to work with cairoGarret Fick1-9/+8
2015-11-23Render with cairo instead of cairocffi - I would like to make it use either, ↵Garret Fick1-7/+8
but for now, using the one that works with wxpython
2015-11-18Merge branch 'master' of https://github.com/garretfick/pcb-toolsGarret Fick5-137/+4
2015-11-18Merge pull request #1 from curtacircuitos/masterGarret Fick5-137/+4
Merge from upstream
2015-11-18Regions with arcs would crash if they occured before any command to set the ↵Garret Fick1-2/+2
aperture
2015-11-15Merge pull request #45 from curtacircuitos/remove-svgwrite-backendHamilton Kibbe5-137/+4
Remove svgwrite backend
2015-11-15Remove svgwrite backendPaulo Henrique Silva5-137/+4
We moved the functionality to cairo backend, it can write png and svg and maybe more (pdfs?)
2015-11-15Use Python's universal newlines to open filesPaulo Henrique Silva6-11/+11
2015-11-13Merge pull request #43 from curtacircuitos/excellon-with-no-tool-definitionHamilton Kibbe1-1/+18
Add fix to work with excellon with no tool definition.
2015-11-13Add fix to work with excellon with no tool definition.Paulo Henrique Silva1-1/+18
I found out that Proteus generate some strange Excellon without any tool definition. Gerbv renders it correctly and after digging in I found the heuristic that they use to "guess" the tool diameter. This change replicates this behavior on pcb-tools.
2015-11-13Fix issue when a region is created as the first graphical object in a filePaulo Henrique Silva1-2/+5
When regions were the first thing draw there is no current aperture defined, as regions do not require an aperture, so we use an zeroed Circle as aperture in this case. Gerber spec says that apertures have no graphical meaning for regions, so this should be enough.
2015-11-13Merge pull request #42 from curtacircuitos/add-some-missing-excellon-stmtsPaulo Henrique Silva3-16/+226
Improve Excellon parsing coverage
2015-11-13Improve Excellon parsing coveragePaulo Henrique Silva3-16/+226
Add some not so used codes that were generating unknown stmt.
2015-10-14Merge pull request #41 from curtacircuitos/read_from_memoryPaulo Henrique Silva10-53/+148
Read from memory
2015-10-10Python 3 fixHamilton Kibbe2-2/+10
2015-10-10Allow files to be read from strings per #37Hamilton Kibbe10-53/+140
Adds a loads() method to the top level module which generates a GerberFile or ExcellonFile from a string
2015-09-10Merge pull request #40 from curtacircuitos/cairo-render-unificationHamilton Kibbe7-86/+141
Cairo render unification
2015-08-09Add support for arcs in regions.Hamilton Kibbe4-49/+70
This fixes the circular cutout issue described in #32. Regions were previously stored as a collection of points, now they are stored as a collection of line and arc primitives.
2015-07-25Fix windows permission errorHamilton Kibbe1-1/+3
per #33 the issue was trying to re-open the temporary file. it works on everything but windows. I've changed it to seek to the beginning and read from the file without re-opening, which should fix the issue.
2015-07-22Fix multiple layer issue in cairo-unification branch (see #33)Hamilton Kibbe3-11/+14
2015-07-14Merge pull request #31 from curtacircuitos/statement_linkPaulo Henrique Silva9-83/+647
Add support for tool reordering and drill path optimization example.
2015-07-09Fix arcs and ackground paintingPaulo Henrique Silva2-2/+8
2015-07-09Initial patch to unify our render towards cairoPaulo Henrique Silva3-39/+62
This branch allows a pure cairo based render for both PNG and SVG. Cairo backend is mostly the same but with improved support for configurable scale, orientation and inverted color drawing. API is not yet final.
2015-07-06Add tool path optimization exampleHamilton Kibbe5-10/+469
Add example demonstrating use of tsp-solver with pcb-tools to optimize tool paths in an excellon file. This is based on @koppi's script in #30