mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-02 21:07:34 +02:00
add koch_curve_3
This commit is contained in:
@@ -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);
|
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]) =
|
function koch_snowflake(n = 4, angle = 60, leng = 1, heading = 0, start = [0, 0]) =
|
||||||
let(
|
let(
|
||||||
|
Reference in New Issue
Block a user