mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-28 17:00:00 +02:00
fix rules
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
use <experimental/lsystem3.scad>;
|
use <experimental/lsystem3.scad>;
|
||||||
use <hull_polyline3d.scad>;
|
use <hull_polyline3d.scad>;
|
||||||
|
|
||||||
for(line = spring()) {
|
for(line = vine()) {
|
||||||
hull_polyline3d(
|
hull_polyline3d(
|
||||||
[line[0], line[1]],
|
[line[0], line[1]],
|
||||||
thickness = 0.25,
|
thickness = 0.25,
|
||||||
@@ -45,7 +45,7 @@ function vine(n = 3, angle = 18, leng = 1, heading = 0, start = [0, 0, 0]) =
|
|||||||
let(
|
let(
|
||||||
axiom = "--F",
|
axiom = "--F",
|
||||||
rules = [
|
rules = [
|
||||||
["F", "/F[++F]-\F[--F]+//F"]
|
["F", "/F[++F]-\\F[--F]+//F"]
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
lsystem3(axiom, rules, n, angle, leng, heading, start);
|
lsystem3(axiom, rules, n, angle, leng, heading, start);
|
||||||
|
Reference in New Issue
Block a user