From e4f352214356fef54ce8450bd359c82b04115626 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sun, 10 Jul 2022 17:55:50 +0800 Subject: [PATCH] clean up --- examples/dragon/treble_clef_dragon.scad | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/examples/dragon/treble_clef_dragon.scad b/examples/dragon/treble_clef_dragon.scad index 96e575b7..71e0cea5 100644 --- a/examples/dragon/treble_clef_dragon.scad +++ b/examples/dragon/treble_clef_dragon.scad @@ -1,7 +1,6 @@ use use use -use use use @@ -192,11 +191,9 @@ module treble_clef_dragon() { points = [for(pa = points_angles) pa[0]]; - p = points[len(points) -1]; - p2 = points[len(points) - 2]; cpts = [ - p2, - p, + points[len(points) - 2], + points[len(points) - 1], [5, 49], [6, 75], [-12, 70], @@ -208,7 +205,7 @@ module treble_clef_dragon() { ]; t_step = 0.1; - path2d = dedup(concat(points, curve(t_step, cpts))); + path2d = concat([for(i = [0:len(points) - 2]) points[i]], curve(t_step, cpts)); body_path = [for(i = [0:len(path2d) - 1]) [each path2d[i], 15 * cos(i * 6.9)]]; leng_body_path = len(body_path);