aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp11
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;
}