From fb0672480f70375147c8091b960fda300083a775 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Tue, 31 Aug 2021 10:02:48 +0800 Subject: [PATCH] dedup befor drawing --- examples/turtle/lsystem2_collection.scad | 3 ++- examples/turtle/lsystem3_collection.scad | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/turtle/lsystem2_collection.scad b/examples/turtle/lsystem2_collection.scad index 6fec3e70..fd2fc0c8 100644 --- a/examples/turtle/lsystem2_collection.scad +++ b/examples/turtle/lsystem2_collection.scad @@ -1,7 +1,8 @@ use ; +use ; use ; -for(line = fern()) { +for(line = dedup(fern())) { line2d( line[0], line[1], diff --git a/examples/turtle/lsystem3_collection.scad b/examples/turtle/lsystem3_collection.scad index 11093f45..8ae1b243 100644 --- a/examples/turtle/lsystem3_collection.scad +++ b/examples/turtle/lsystem3_collection.scad @@ -1,7 +1,8 @@ use ; +use ; use ; -for(line = hilbert_curve()) { +for(line = dedup(hilbert_curve())) { hull_polyline3d( [line[0], line[1]], diameter = 0.5,