Commit graph

44 commits

Author SHA1 Message Date
jaseg
2e38e66f14 Update comment on join discrepancies 2021-06-04 23:29:38 +02:00
jaseg
61887e9ee1 Add & fix vectorizer tests 2021-06-04 23:28:36 +02:00
jaseg
6193fa151e Add larger contour tracing test image 2021-06-04 21:43:14 +02:00
jaseg
018748aa23 Fix handling of dashes and joins, all tests run through now 2021-06-04 16:39:05 +02:00
jaseg
6dd7bbc38c Add additional test cases 2021-06-04 16:38:50 +02:00
jaseg
2d03b014f9 Add missing gaussian blur implementation 2021-06-04 16:38:32 +02:00
jaseg
9230d678af Add support for stroke-dashoffset 2021-06-04 00:44:38 +02:00
jaseg
f1bf25b51f Fix transform math 2021-06-04 00:34:39 +02:00
jaseg
564ab243cc Add svg-flatten SVG feature tests 2021-06-03 23:45:11 +02:00
jaseg
de0f851645 svg-flatten: build against submodule pugixml 2021-06-03 00:10:26 +02:00
jaseg
6cca4a3278 Port svg-flatten to nopencv 2021-06-02 15:05:36 +02:00
jaseg
3e58a4228b Fix small logical error in tests 2021-06-02 12:13:52 +02:00
jaseg
7b58f2efc5 Fix tests 2021-06-02 12:12:32 +02:00
jaseg
0530c365ca Add polygon area function & tests. These tests catch a single-px bug. 2021-06-02 11:57:00 +02:00
jaseg
536a34cd59 Prettify test cases 2021-06-02 11:31:38 +02:00
jaseg
d18b8a1d80 Finish chain approximation tests 2021-06-02 11:00:35 +02:00
jaseg
3b553b3a1d Chain approximation approximately working 2021-06-02 00:02:36 +02:00
jaseg
3386e586ac Work on chain approx 2021-06-01 23:36:32 +02:00
jaseg
bbf1c02e79 Contour finding tests run through 2021-05-30 20:22:59 +02:00
jaseg
d175570177 Add beginnings of minimalist contour tracing code 2021-05-30 19:39:45 +02:00
jaseg
79e8da1f46 Fix phys2doc/doc2phys for image export 2021-05-24 20:50:53 +02:00
jaseg
5bb733e559 Fix pattern rendering and some xform bugs 2021-04-25 18:42:43 +02:00
jaseg
6eb2c967a0 svg-flatten: Add support for patterned strokes on outline layers 2021-04-25 15:41:50 +02:00
jaseg
1d6d4e4f14 svg-flatten: Add support for line thickness to board outline exporter 2021-04-25 14:41:06 +02:00
jaseg
f2c891533f svg-flatten: Add outline/edge layer mode 2021-04-25 14:03:16 +02:00
jaseg
1180ebdc1f Remove cairo dependency
We initially used Cairo for its bezier flattening algorithm. That
algorithm turned out to be a bit too imprecise at the scales we're
working at here (#17), so I ended up porting over some code from
Antigrain Graphics. The only other thing we used Cairo for was debug
output and coordinate transforms, so I just wrote the relevant vector
math in a small header file, deleted all debug output code and thus
eliminated the cairo dependency. This is a step towards Windows builds.
2021-04-25 00:20:51 +02:00
jaseg
776e0bd206 Replace cairo curve flattener from Anitgrain Graphics
This also fixes an issue where non-closed curves were not dilated
properly.
2021-04-24 20:17:42 +02:00
jaseg
5d1bcd7fc0 Add MacOS support 2021-04-05 13:57:40 +02:00
jaseg
3288fb8345 Add -f/--flip-gerber-polarity option 2021-04-05 13:57:40 +02:00
jaseg
da9d7280d5 svg-flatten: add curve flattening tolerance command line param 2021-02-17 18:58:11 +01:00
jaseg
f9c5c00f51 svg-flatten: Fix fill-rule handling for filled open paths 2021-02-17 18:33:31 +01:00
jaseg
3fc628beec Fix handling of stroke width under transformations 2021-02-11 00:18:54 +01:00
jaseg
4a967682d4 Make inital test run on debian, ubuntu, arch, fedora 2021-02-07 12:47:49 +01:00
jaseg
79db262858 Make svg-flatten always clean up its temporary files 2021-02-06 19:24:45 +01:00
jaseg
3bcbb29cf3 svg-flatten: Fix invalid export of negative gerber coordinates 2021-02-06 15:36:27 +01:00
jaseg
3e323c953c Add workaround to clipper zero-height path bug 2021-02-06 14:59:44 +01:00
jaseg
18d857668e Small fixes, find svg-flatten in user pip install 2021-02-06 12:30:27 +01:00
jaseg
8c494f7736 Work on fedora/debian compatibility 2021-02-06 00:05:27 +01:00
jaseg
6aab099baa svg-flatten: Be even smarter locating usvg 2021-02-04 22:56:53 +01:00
jaseg
bd2b012740 svg-flatten: Be a bit smarter locating usvg 2021-02-04 22:53:49 +01:00
jaseg
fb9c6ac32c svg-flatten: Add dependency check 2021-02-04 22:53:33 +01:00
jaseg
fc495607dc Update README 2021-02-01 12:46:50 +01:00
jaseg
a68e395cb6 Advanced svg/gerber composition working 2021-01-31 22:11:34 +01:00
jaseg
2133867c8a Reorg: move svg-flatten files into subdir 2021-01-30 20:01:00 +01:00