1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-28 17:00:00 +02:00

fix rules

This commit is contained in:
Justin Lin
2020-04-16 08:31:46 +08:00
parent 04f39c0514
commit ed1d59dc4f

View File

@@ -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);