1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-16 13:50:05 +01:00

add rose_scale

This commit is contained in:
Justin Lin 2022-09-03 11:17:29 +08:00
parent 4c46ac11fc
commit 9d2f6eaac2

View File

@ -14,6 +14,8 @@ angle_step = 360 / $fn;
min_radius = 15;
init_radius = rands(min_radius * 1.75, min_radius * 2.25, 1)[0];
rose_scale = 6;
theta_step = 0.1;
rf_step = 0.1;
@ -116,7 +118,7 @@ module climbing_rose() {
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 * 6, rr * 6, rr * 5])
scale([rr * rose_scale, rr * rose_scale, rr * (rose_scale - 1)])
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, .125])