From cfe959109975fe25bb17da4831724d4d528cd1e5 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Mon, 13 Apr 2020 18:05:14 +0800 Subject: [PATCH] add koch_star --- src/experimental/lsystem2_collections.scad | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/experimental/lsystem2_collections.scad b/src/experimental/lsystem2_collections.scad index 351ac002..4fbe0054 100644 --- a/src/experimental/lsystem2_collections.scad +++ b/src/experimental/lsystem2_collections.scad @@ -56,6 +56,15 @@ function koch_quadratic_type2(n = 4, angle = 90, leng = 1, heading = 0, start = ) lsystem2(rule, n, angle, leng, heading, start); +function koch_star(n = 4, angle = 60, leng = 1, heading = 0, start = [0, 0]) = + let( + rule = [ + ["S", "F++F++F"], + ["F", "F+F--F+F"] + ] + ) + lsystem2(rule, n, angle, leng, heading, start, "6789"); + function dragon_curve(n = 10, angle = 90, leng = 1, heading = 0, start = [0, 0]) = let( rule = [