From 7eff4d759e4b5ad48970fbaf9f6f3e569ac29044 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Fri, 2 Sep 2022 14:31:28 +0800 Subject: [PATCH] refactor --- examples/spiral/climbing_rose.scad | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/spiral/climbing_rose.scad b/examples/spiral/climbing_rose.scad index 195b28e2..9437f323 100644 --- a/examples/spiral/climbing_rose.scad +++ b/examples/spiral/climbing_rose.scad @@ -89,13 +89,12 @@ module climbing_rose() { a = atan2(v.y, v.x); translate([each p, 0] + [0, 0, rr * 0.55]) - rotate([0, rands(0, 1, 1)[0] > 0.5 ? 17 : -17, a]) rotate(a) - scale([rr * 3, rr * 3, rr * 2]) + scale([rr * 3.5, rr * 3.5, rr * 2.5]) union() { rose(thickness, theta_from * rands(2.75, 3.25, 1)[0] * r / rr, rands(0.75, 1.25, 1)[0] * theta_to * r / rr, rf_to, rf_step); - translate([0, 0, .075]) + translate([0, 0, .125]) sphere(.1); } }