mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-12 17:54:18 +02:00
add koch_star
This commit is contained in:
@@ -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 = [
|
||||
|
Reference in New Issue
Block a user