Commit graph

786 commits

Author SHA1 Message Date
Garret Fick
c9c1313d59 Fix units statement. Keep track of original macro statement in the AMGroup 2016-05-28 12:36:31 +08:00
Garret Fick
d1d112f2f1 Merge pull request #3 from qaulau/patch-2
Update cairo_backend.py
2016-05-19 23:28:02 +08:00
Garret Fick
74c638c718 Fix issue where did not always switch into the G01 mode after G03 when the point was unchanged 2016-05-19 23:19:28 +08:00
Garret Fick
f1f07d74c4 Offset of drill hit and slots 2016-05-10 23:16:51 +08:00
Garret Fick
7fda8eb9f5 Don't render null items 2016-05-08 22:13:08 +08:00
Garret Fick
af86c5c5a2 Correctly find the center for single quadrant arcs 2016-04-23 13:32:32 +08:00
Qau Lau
199a0f3d3c Update cairo_backend.py
If cairo  module import error use cairocffi
2016-04-08 20:02:04 +08:00
Garret Fick
2eac1e427c Fix converting values for excellon files. Give error for incremental mode 2016-04-05 22:40:12 +08:00
Garret Fick
ad29fac873 Merge pull request #2 from qaulau/master
Update rs274x.py
2016-03-27 14:37:46 +08:00
Garret Fick
288f49955e Actually fix the rout rendering to be correct 2016-03-27 14:24:11 +08:00
Garret Fick
25515b8ec7 Correctly render M15 slot holes 2016-03-26 18:18:16 +08:00
Garret Fick
82fed20310 D02 in the middle of a region starts a new region 2016-03-26 17:14:47 +08:00
Garret Fick
acde19f205 Support for the G85 slot statement 2016-03-26 15:59:42 +08:00
Garret Fick
d12f6385a4 Basic rendering of excellon works, but still has issues 2016-03-24 00:10:34 +08:00
Paulo Henrique Silva
6b054c6815 Merge pull request #55 from BenFrantzDale/install-instructions
Add install instructions.
2016-03-22 14:10:47 -03:00
Ben FrantzDale
57c9dab99d Remove "make" line. Apparently it's not necessary. 2016-03-22 13:02:34 -04:00
Ben FrantzDale
7c7a2e03d9 Add install instructions. 2016-03-22 08:13:30 -04:00
Qau Lau
738bbc7edd Update rs274x.py
python 2.6 bug re incompatibility in sre, see https://bugs.python.org/issue214033
2016-03-22 17:30:20 +08:00
Garret Fick
a6c1862450 Correctly handle empty command statements 2016-03-19 11:28:45 +08:00
Garret Fick
7053d320f0 Better detection of plated tools 2016-03-13 14:27:09 +08:00
Hamilton Kibbe
d7df755d60 Merge pull request #54 from kirberich/master
Make sure apertures get a unit
2016-03-11 08:48:03 -05:00
Robert Kirberich
d274b0823d Make sure apertures get a unit 2016-03-10 20:51:53 +00:00
Garret Fick
97924d188b More robust writing, even for bad files. Remove accidentally added imports 2016-03-05 16:26:30 +08:00
Garret Fick
0f1d1c3a29 Remove some testing code from gerber writer. More implementation for excellon writer - not working yet 2016-03-05 14:56:08 +08:00
Garret Fick
5cb60d6385 AM group hasn't implemented offset 2016-03-05 11:44:20 +08:00
Garret Fick
9735547568 Make rendering more robust for bad gerber files 2016-03-05 10:28:38 +08:00
Garret Fick
7f47aea332 Write polygons to macros 2016-03-05 10:04:58 +08:00
Garret Fick
7b88509c4a Make writer resilient to similar macro defs 2016-03-05 09:24:54 +08:00
Garret Fick
20a9af279a More rendering of AMGroup to statements 2016-03-01 00:06:14 +08:00
Garret Fick
223a010831 Fix critical issue with rotatin points (when the angle is zero the y would be flipped). Render AM with outline to gerber 2016-02-27 18:18:04 +08:00
Garret Fick
29c0d82bf5 RS274X backend for rendering. Incompelte still 2016-02-27 15:24:36 +08:00
Garret Fick
02dbc6a51e Additional bounding box calcuation that considers only actual positions, not the movement of the machine 2016-02-21 10:23:03 +08:00
Garret Fick
4bc7a6345b Keep aperature macros as single statement. Don't generate regions with no points 2016-02-16 22:24:03 +08:00
Garret Fick
991a3687ef Handle multiple commands on a single line 2016-02-16 21:57:25 +08:00
Garret Fick
3fce700ef2 Don't throw an exception for missing zero suppress, even though it is wrong 2016-02-15 23:53:52 +08:00
Garret Fick
a765f8aa2c Fix convertion of units for apertures and regions 2016-02-14 22:06:32 +08:00
Garret Fick
5b93db47cd Draw thermal aperture macros (as approximation) 2016-02-02 00:11:55 +08:00
Garret Fick
96bdd0f59d Keep track of quadrant mode so we can draw full circles 2016-01-31 15:24:57 +08:00
Garret Fick
e84f131720 Add support for more excellon formats. Dont consider line width when determinging region bounding box 2016-01-31 14:17:35 +08:00
Hamilton Kibbe
5df38c014f Cleanup, rendering fixes.
fixed rendering of tented vias
fixed rendering of semi-transparent layers
fixed file type detection issues
added some examples
2016-01-28 12:19:03 -05:00
Paulo Henrique Silva
b9f1b106c3 Excellon format detection uses ExcelonFile.bounds now
Long term we should have only one .bounds method. But ExcellonParser right
now is not correct for cases with two drills in the same line
(it will report one dimension being zero)
2016-01-25 12:42:12 -02:00
Paulo Henrique Silva
1d9270d809 Fix NameError on Polygon primitive rendering 2016-01-22 03:24:50 -02:00
Hamilton Kibbe
66a0d09e72 Add support for mirrored rendering
- The default theme now renders the bottom layers mirrored.
  - see https://github.com/curtacircuitos/pcb-tools/blob/master/examples/pcb_bottom.png
    for an example.
2016-01-21 04:39:55 -05:00
Hamilton Kibbe
5476da8aa3 Fix a bunch of rendering bugs.
- 'clear' polarity primitives no longer erase background
  - Added aperture macro support for polygons
  - Added aperture macro rendring support
  - Renderer now creates a new surface for each layer and merges them instead of working
    directly on a single surface
  - Updated examples accordingly
2016-01-21 03:57:44 -05:00
Garret Fick
60784dfa21 Skip over a strange excellon statement 2016-01-16 18:33:40 +08:00
Garret Fick
6a99359413 Fix converting polygons to outlines for macros 2016-01-16 12:28:46 +08:00
Garret Fick
83ae0670d1 More stability fixes for poorly constructed files 2016-01-08 00:19:47 +08:00
Paulo Henrique Silva
7a53251463 Merge pull request #53 from curtacircuitos/pcb_interface
Add PCB interface
2016-01-05 22:05:19 -02:00
Hamilton Kibbe
6a005436b4 Refactor a little
pulled all rendering stuff out of the pcb/layer objects
2016-01-01 12:25:38 -05:00
Garret Fick
f61eee807f Render polygon flashes 2015-12-30 18:44:07 +08:00