Add Hilbert Curve feature sequencing as an option

This commit is contained in:
Eric Fischer
2018-12-12 10:51:00 -08:00
parent 5f1c0e151f
commit 6376c283ba
10 changed files with 9842 additions and 20 deletions
+2 -2
View File
@@ -874,8 +874,8 @@ drawvec reorder_lines(drawvec &geom) {
// instead of down and to the right
// so that it will coalesce better
unsigned long long l1 = encode(geom[0].x, geom[0].y);
unsigned long long l2 = encode(geom[geom.size() - 1].x, geom[geom.size() - 1].y);
unsigned long long l1 = encode_index(geom[0].x, geom[0].y);
unsigned long long l2 = encode_index(geom[geom.size() - 1].x, geom[geom.size() - 1].y);
if (l1 > l2) {
drawvec out;