1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-18 06:38:14 +01:00

add koch_curve_3

This commit is contained in:
Justin Lin 2020-04-13 18:14:19 +08:00
parent 2169b2f183
commit 8c53b41fd9

View File

@ -28,6 +28,14 @@ function koch_curve(n = 4, angle = 60, leng = 1, heading = 0, start = [0, 0]) =
)
lsystem2(rule, n, angle, leng, heading, start);
function koch_curve_3(n = 3, angle = 90, leng = 1, heading = 0, start = [0, 0]) =
let(
rule = [
["S", "F-F-F-F"],
["F", "FF-F+F-F-FF"]
]
)
lsystem2(rule, n, angle, leng, heading, start);
function koch_snowflake(n = 4, angle = 60, leng = 1, heading = 0, start = [0, 0]) =
let(