Paulo Henrique Silva
1b65147f7a
Merge pull request #99 from chintal/gEDA_layers
...
Correctly recognize gEDA pcb generated gerber filenames
2019-11-27 11:44:13 -03:00
Chintalagiri Shashank
5288a8314b
Manual merge resolution
2019-11-27 15:11:27 +05:30
Paulo Henrique Silva
ef589a0640
Migrate to pytest ( #111 )
...
* Migrate to pytest
All tests were update to use pytest.
Tests were alse black formatted. Eventually all code
will be black formatted but need to merge some PRs first.
2019-11-26 00:37:41 -03:00
Paulo Henrique Silva
404384cf91
Fix #98
2019-11-25 23:56:24 -03:00
Paulo Henrique Silva
ab6aa538c1
Merge pull request #100 from chintal/multilayer
...
Add a new transparent theme for multilayer renders.
2019-11-25 23:51:37 -03:00
Paulo Henrique Silva
25b82c9885
Merge branch 'master' into script
2019-11-25 23:46:31 -03:00
Paulo Henrique Silva
d5d618f058
Merge branch 'master' into multilayer
2019-11-25 23:43:04 -03:00
Paulo Henrique Silva
7125380c1a
Merge branch 'master' into outline
2019-11-25 23:35:43 -03:00
C4dmium
c08457f7ad
Update excellon_statements.py
2019-08-01 22:26:06 +09:00
C4dmium
dbd92e58c9
Update utils.py
2019-08-01 22:25:01 +09:00
Chintalagiri Shashank
9cc42d9b77
Make __main__ functional again and install a script entry point.
2019-05-11 04:24:09 +05:30
Chintalagiri Shashank
37dfd86368
Add hook for outline layer to PCB class
2019-05-11 04:03:59 +05:30
Chintalagiri Shashank
0c86289565
Add a new transparant theme for multilayer renders.
2019-05-11 03:27:48 +05:30
Chintalagiri Shashank
4aca5b8a02
Correctly recognize gEDA pcb generated gerber filenames
2019-05-10 23:40:56 +05:30
Hamilton Kibbe
2601ae8eab
fix reversed layer bug
2019-03-02 10:41:37 -05:00
jaseg
a7a5981e0e
Make primitives with unset level polarity inherit from region
...
This fixes region rendering with programatically generated primitives
such that clear level polarity works in an intuitive way. This is useful
for e.g. cutouts in regions. Before, the renderer would set level
polarity twice, both when starting the region and then again once for
each region primitive (line or arc). The problem was that the primitives
in a region with "clear" polarity would when constructed with unset
polarity default to "dark". Thus the renderer would emit something like
LPC (clear polarity) -> G36 (start region) -> LPD (dark polarity) ->
{lines...} instead of LPC -> G36 -> {lines...}.
After this commit, Line and Arc will retain None as level polarity when
created with unset level polarity, and region rendering will override
None with the region's polarity. Outside regions, the old dark default
remains unchanged.
Note on verification: Somehow, gEDA gerbv would still render the broken
regions the way one would have intended, but other viewers (KiCAD
gerbview, the online EasyEDA one and whatever JLC uses to make their
silkscreens) would not.
2019-02-03 14:37:26 +09:00
Hamilton Kibbe
f59d78b7fe
Merge pull request #92 from curtacircuitos/subclass-bugfix
...
Fix hard requirement of cairo per #83 , and add stubs for required sub…
2019-01-26 13:52:32 -05:00
Hamilton Kibbe
292f74dee9
Merge pull request #91 from cejpmart/patch-1
...
IPC356: Do not crash on record type 367
2019-01-26 13:48:05 -05:00
Martin Cejp
e002975249
IPC356: Do not crash on record type 367
2019-01-26 16:07:45 +01:00
jaseg
17924398fa
Fix cairo matrix clone op to not use copy.copy
...
For some reason, copy.copy would barf saying it can't deepcopy cairo
matrices.
2018-07-06 19:57:01 +02:00
Hamilton Kibbe
7c20bd3699
Merge pull request #87 from ju5t/full-filename-regex
...
Match full filename instead of the base name
2018-06-27 12:31:00 -05:00
ju5t
8dd8a87fc0
Match full filename instead of the base name
...
Regular expressions only matched the base name. This matches the
entire filename which allows for more advanced regular expressions.
2018-06-26 22:17:45 +02:00
ju5t
7cd3d53252
Skip subdirectories during import
...
If a directory contains subdirectories from_directory throws an
exception.
2018-06-25 09:43:23 +02:00
Hamilton Kibbe
5245fb9256
Fix hard requirement of cairo per #83 , and add stubs for required subclass methods to GerberContext per #84
2018-06-05 08:57:37 -04:00
jaseg
e5597e84a8
Use positional arguments for cairo.Context.arc
...
cairocffi 0.6 does not support keyword args.
2017-11-25 16:15:00 +01:00
jaseg
b87629c2ae
Add hole support to ADParamStmt.rect
2017-11-25 16:14:23 +01:00
Hamilton Kibbe
fa9f2c3a74
Merge pull request #76 from ju5t/guess-layer
...
Check gerber content for layer hints
2017-11-22 11:15:13 -05:00
Hamilton Kibbe
c2ed707b52
Fix bounding box calculation for Slot primitives per #77
2017-11-14 09:15:06 -05:00
Hamilton Kibbe
ca6c819ca8
Add test that reproduces #77
2017-11-14 09:11:49 -05:00
Hamilton Kibbe
e12a04fc16
Fix error in slot rendering from #77
2017-11-01 16:09:06 -04:00
ju5t
9ae238bf7a
Check gerber content for layer hints
2017-11-01 16:23:22 +01:00
Kliment Yanev
a08ecc922d
Implement quickhull to remove scipy dependency
2017-09-16 14:48:44 +02:00
Hamilton Kibbe
7ad6c3f6ac
Fix handling of multi-line strings per #66
2017-07-04 02:11:52 -04:00
Hamilton Kibbe
ea0643dcf4
Merge pull request #67 from jmargeta/python_3_fix
...
Add GerberParser fix for Python 3.x
2017-07-04 01:31:32 -04:00
Hamilton Kibbe
e754f59468
Remove rest of mixed unpack/kwarg syntax to fix #72
2017-07-04 01:22:47 -04:00
Hamilton Kibbe
8def119980
Merge pull request #71 from tomacorp/layer_bounds_arg
...
Added bounds argument to render_layer()
2017-06-12 08:02:59 -04:00
Hamilton Kibbe
872c2db250
Merge pull request #69 from jmargeta/sweep_angle_tolerance
...
Add tolerance to center finding
2017-06-12 07:59:39 -04:00
Hamilton Kibbe
b85021d9b8
Merge pull request #68 from jmargeta/cairo_python_3_fix
...
Fix Cairo backend for svg saving and Python 3
2017-06-12 07:58:59 -04:00
Hamilton Kibbe
f7a719e6f7
Fix error when unpacking colors in cairo backend
2017-06-12 07:58:06 -04:00
Tom Anderson
e0b45108d2
Added bounds argument to render_layer()
2017-05-24 09:42:23 -07:00
Jan Margeta
dd1676ad8a
Add tolerance to center finding
...
In some cases, the computation of valid sweep angle hit numerical limits
and no centers are found.
This commit adds a small amount of tolerance.
2017-04-15 15:40:55 +02:00
Jan Margeta
7873999926
Fix Cairo backend for svg saving and Python 3
2017-04-15 15:29:58 +02:00
Jan Margeta
5b67c82abc
Replace sys.maxint with sys.maxsize
...
In Python 3, sys.maxint was removed, however its current use
can be safely substituted with sys.maxsize (also in Python 2)
See also: https://docs.python.org/3.1/whatsnew/3.0.html#integers
2017-04-15 11:13:31 +02: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