Commit graph

310 commits

Author SHA1 Message Date
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
d9bc53190d Merge commit '7a53251463' into merge-curtacircuitos 2016-07-20 23:41:26 +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
Paulo Henrique Silva
d0e9018da0 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-07-16 15:56:12 +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
09ebeb6e24 Merge commit '2e2b4e49c3' into merge-curtacircuitos 2016-07-16 14:26:19 +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
Garret Fick
bebcda883b Merge pull request #4 from visualgui823/master
compliant fs format as FS<L or T><A or I>[Nn][Gn]<Xn><Yn>[Dn][Mn]
2016-06-04 13:36:56 +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
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
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