From 597d74fcc8d0c2687a94e25cb0da8e4ccfdd3cd7 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Mon, 22 Apr 2019 01:30:31 -0700 Subject: [PATCH] Make fractal tree more natural looking. --- examples/fractal_tree.scad | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/fractal_tree.scad b/examples/fractal_tree.scad index 4ab6a58..60f3320 100644 --- a/examples/fractal_tree.scad +++ b/examples/fractal_tree.scad @@ -18,10 +18,10 @@ module leaf(s) { module branches(minsize){ if($parent_size2.x>minsize) { attach(TOP) - zrot(gaussian_rand(90,10)) + zrot(gaussian_rand(90,20)) zring(n=floor(log_rand(2,5,4))) zrot(gaussian_rand(0,5)) - yrot(gaussian_rand(30,5)) + yrot(gaussian_rand(30,10)) let( sc = gaussian_rand(0.7,0.05), s1 = $parent_size.z*sc, @@ -35,7 +35,7 @@ module branches(minsize){ leaf(gaussian_rand(100,5)); } } -recolor("lightgray") cylinder(d1=300, d2=250, l=1500) branches(5); +recolor("lightgray") cylinder(d1=300, d2=250, l=1500) branches(10); // vim: noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap