Commit graph

270 commits

Author SHA1 Message Date
Hamilton Kibbe
60d08dc8ad Merge upstream change 2016-11-07 21:20:26 -05:00
Girts Folkmanis
369ac7b2a3 cairo_backend.py: use BytesIO instead of StringIO
This fixes a crash in cairocffi on Python3, and should be compatible
with both python2 and python3. In python2, byte strings are just
strings. In python3, when getting binary data, the user probably wants
a byte string instead of a regular string.
2016-11-07 17:11:07 -08:00
Hamilton Kibbe
6db0658e23 Fix tests on python3 2016-11-06 15:08:00 -05:00
Hamilton Kibbe
d7a0f3ad2b Remove debug print" 2016-11-06 14:58:32 -05:00
Hamilton Kibbe
56c3c88c57 temporarily disable tests faillin g on CI 2016-11-06 14:55:59 -05:00
Hamilton Kibbe
422c86bcc6 Merge upstream changes 2016-11-06 14:44:40 -05:00
Hamilton Kibbe
724c2b3bce Finish Merge, most tests passing 2016-11-05 20:56:47 -04:00
Hamilton Kibbe
22e668c75f Fix tests 2016-11-05 18:30:21 -04:00
Hamilton Kibbe
0fedaedb6e Add more layer hints as seen in the wild 2016-09-29 19:43:28 -04:00
Hamilton Kibbe
5af19af190 Commit partial merge so I can work on the plane 2016-09-24 02:28:36 +08:00
Garret Fick
8d5e782ccf Fix multiple problems with the merge. There are still errors, but I will intentionally leave them because future merges might resolve them 2016-08-06 09:51:58 +08:00
Hamilton Kibbe
8cd842a41a Manually mere rendering changes 2016-08-06 09:40:40 +08:00
Garret Fick
965d3ce23b Add more tests for rendering to PNG. Start adding tests for rendering to Gerber format. Changed definition of no hole to use None instead of 0 so we can differentiate when writing to Gerber format. Makde polygon use hole diameter instead of hole radius to match other primitives 2016-07-24 22:08:31 +08:00
Garret Fick
7cd6acf126 Add many render tests based on the Umaco gerger specification. Fix multiple rendering bugs, especially related to holes in flashed apertures 2016-07-24 17:08:47 +08:00
Garret Fick
cd4614f997 Merge commit '2fa585853b' into merge-curtacircuitos 2016-07-24 11:18:28 +08:00
Garret Fick
b0e13cc596 Merge in 6a005436b4 2016-07-20 23:37:18 +08:00
Garret Fick
e8327fda79 Manually merge change 5430fa6738 2016-07-20 23:26:51 +08:00
Garret Fick
76a49ec8e7 Manually merge change 6f876edd09 2016-07-20 23:20:15 +08:00
Garret Fick
34f20ee90f Manually merge af5541ac93 2016-07-17 21:04:15 +08:00
Garret Fick
f0585baefa Create first test that renders and validates the the rendered PNG is correct. 2016-07-17 13:14:54 +08:00
Garret Fick
0dded38353 Merge in negative soldermask. Still required further changes to support negatives for shapes that dont exist in the merge source 2016-07-17 10:42:03 +08:00
Garret Fick
52c6d4928a Fix most broken tests so that I can safely merge into changes with known expected test result 2016-07-16 15:49:48 +08:00
Garret Fick
7a79d1504e Setup .gitignore for Eclipse. Start creating doc strings 2016-07-16 14:22:38 +08:00
Garret Fick
10c7075ad5 Allow G85 for invalid files 2016-07-11 23:18:15 +08:00
Garret Fick
7e06f3a2f5 Workaround for bad excellon files that don't correctly set the mode 2016-07-10 15:41:31 +08:00
Garret Fick
9b0d3b1122 Fix issue with chaning region mode via flash. Add options for controlling output from rendered gerber 2016-07-10 15:07:17 +08:00
Garret Fick
0107d159b5 Fix crash with polygon aperture macros 2016-07-02 12:34:35 +08:00
Garret Fick
14747494b8 Rotate vector line 2016-06-30 23:08:51 +08:00
Garret Fick
efb3703df4 Fix rotation of center line 2016-06-30 22:46:20 +08:00
Garret Fick
b140f5e476 Don't flash G03-only commands 2016-06-28 23:15:20 +08:00
Garret Fick
ccb6eb7a76 Add support for polygon apertures 2016-06-25 16:46:44 +08:00
Garret Fick
efcb221fc7 Missing * in writing aperture macro 2016-06-25 16:00:46 +08:00
Garret Fick
b01c4822b6 Render aperture macros with clear regions 2016-06-25 12:27:28 +08:00
Garret Fick
265aec83f6 Offsetting amgroup was doubly offseting 2016-06-19 12:06:19 +08:00
Garret Fick
8f4b439efc Rout mode doesn't need to specify G01 every time 2016-06-06 22:26:06 +08:00
Garret Fick
9e6d813c1f Merge branch 'master' of https://github.com/garretfick/pcb-tools 2016-06-04 14:57:26 +08:00
Garret Fick
fca36a29b9 Handle 85 statements that omit one value 2016-06-04 14:57:21 +08:00
visualgui823@live.com
6e014c6117 compliant fs format as FS<L or T><A or I>[Nn][Gn]<Xn><Yn>[Dn][Mn] 2016-06-03 10:45:18 +00:00
Garret Fick
ea97d9d037 Fix issue with switching between ROUT and normal drill modes 2016-05-28 17:03:40 +08:00
Garret Fick
5a20b2b92d Fix converting amgroup units 2016-05-28 14:14:49 +08:00
Garret Fick
3fc296918e Use the known macro statement to render. Fix thermal not setting rotation 2016-05-28 13:06:08 +08:00
Paulo Henrique Silva
49dadd46ee Fix AMParamStmt to_gerber to write changes back.
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.
2016-05-28 12:39:05 +08:00
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