diff options
author | jaseg <git@jaseg.de> | 2021-01-27 01:26:54 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-01-27 01:26:54 +0100 |
commit | 9711fabab7893fcdd0a5708c79a7d48f2ad15167 (patch) | |
tree | a0af6000c47a5acc1b7ac8f6c802529b8af43f97 /src/main.cpp | |
parent | 5285b6dce8f0df37282b744ce625d4976b0f2541 (diff) | |
download | gerbolyze-9711fabab7893fcdd0a5708c79a7d48f2ad15167.tar.gz gerbolyze-9711fabab7893fcdd0a5708c79a7d48f2ad15167.tar.bz2 gerbolyze-9711fabab7893fcdd0a5708c79a7d48f2ad15167.zip |
WIP render settings
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 889fe6a..ba75204 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -6,6 +6,7 @@ #include <string> #include <argagg.hpp> #include <gerbolyze.hpp> +#include "vec_core.h" using argagg::parser_results; using argagg::parser; @@ -158,13 +159,19 @@ int main(int argc, char **argv) { out.pop_back(); }; - ElementSelector sel; + IDElementSelector sel; if (args["only_groups"]) id_match(args["only_groups"], sel.include); if (args["exclude_groups"]) id_match(args["exclude_groups"], sel.exclude); - doc.render(flattener ? *flattener : *sink, &sel); + VoronoiVectorizer vec(POISSON_DISC, true); + RenderSettings rset { + 0.1, + &vec + }; + + doc.render(rset, flattener ? *flattener : *sink, &sel); return EXIT_SUCCESS; } |