Commit graph

283 commits

Author SHA1 Message Date
Tom Anderson
e0b45108d2 Added bounds argument to render_layer() 2017-05-24 09:42:23 -07:00
Hamilton Kibbe
19a8fb0048 Add max_width and max_height arguments to 2016-12-13 20:22:54 -05:00
Hamilton Kibbe
7c4ec8a768 Clip context to axis- and pixel- aligned bounds before rendering primitives. Significantly speeds up render 2016-12-13 00:01:05 -05:00
ju5t
ffeaf788f0 (#61) Add regex option to discover layer classes 2016-12-01 21:08:17 +01:00
Hamilton Kibbe
e07ccc805f Fix drill tests 2016-11-18 08:14:26 -05:00
Hamilton Kibbe
389c273a87 Clean up rs274x output tests 2016-11-18 08:12:55 -05:00
Hamilton Kibbe
33e8494318 Add more tests for primitives 2016-11-18 08:11:56 -05:00
Hamilton Kibbe
0ae5c48a65 Fix rs274x output bugs 2016-11-18 08:10:32 -05:00
Hamilton Kibbe
5696fc7064 Fix a bunch of bugs in rendering that showed up when rendering the gerbv test suite 2016-11-18 08:09:03 -05:00
Hamilton Kibbe
a7f1f6ef0f Finish adding square hole support, fix some primitive calculations, etc. 2016-11-18 08:05:57 -05:00
Hamilton Kibbe
6b672e98ff Add support for IF (Include File) rs274x command 2016-11-18 08:02:22 -05:00
Hamilton Kibbe
c70ece73ea Add support for square holes in basic primitives 2016-11-18 07:56:51 -05:00
Hamilton Kibbe
41a7b90dff Excellon update 2016-11-18 07:55:43 -05:00
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