1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00

modify examples

This commit is contained in:
Justin Lin 2021-07-15 12:21:06 +08:00
parent f3473e8765
commit 4583305c76

View File

@ -12,18 +12,21 @@ twice_ring_extrude(
translate([95, 0])
twice_ring_extrude(
shape_liquid_splitting(radius = 5, centre_dist = 25),
r = 25,
shape_turns = 4
);
translate([-95, 0])
twice_ring_extrude(
[[17.5, 0], [17.5, 10], [12.5, 10], [12.5, 5], [7.5, 5], [7.5, 10], [2.5, 10], [2.5, 5], [-2.5, 5], [-2.5, 10], [-7.5, 10], [-7.5, 5], [-12.5, 5], [-12.5, 10], [-12.5, 10], [-17.5, 10], [-17.5, 0]],
[for(p = shape_liquid_splitting(radius = 5, centre_dist = 25)) [p[0], p[1] + 10]],
r = 25,
shape_turns = 3
);
translate([-110, 0])
twice_ring_extrude(
[[17.5, 10], [17.5, 20], [12.5, 20], [12.5, 15], [7.5, 15], [7.5, 20], [2.5, 20], [2.5, 15], [-2.5, 15], [-2.5, 20], [-7.5, 20], [-7.5, 15], [-12.5, 15], [-12.5, 20], [-17.5, 20], [-17.5, 10]],
r = 30,
shape_turns = 3
);
function y_offset(shape, d) =
[for(p = shape) [p[0], p[1] + d]];
module twice_ring_extrude(shape, r, shape_turns) {
t = 360 * shape_turns;
ring_extrude(shape, radius = r, twist = t, angle = 720);