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

update to 3.0

This commit is contained in:
Justin Lin
2021-02-19 11:24:34 +08:00
parent e3663e051a
commit 3a5915dd99
14 changed files with 28 additions and 28 deletions

View File

@@ -3,7 +3,7 @@ use <line3d.scad>;
/* [Basic] */
stick_leng = 80;
stick_thickness = 5;
stick_diameter = 5;
inner_square_leng = 60;
leng_diff = 1.75;
min_leng = 13;
@@ -15,7 +15,7 @@ cap_style = "CAP_CIRCLE"; // [CAP_BUTT, CAP_CIRCLE, CAP_SPHERE]
angle_offset = 5;
layer_offset = 1.2;
module stick_square(inner_square_leng, stick_leng, stick_thickness, cap_style) {
module stick_square(inner_square_leng, stick_leng, stick_diameter, cap_style) {
diff_leng = stick_leng - inner_square_leng;
half_inner_square_leng = inner_square_leng / 2;
half_stick_leng = stick_leng / 2;
@@ -24,7 +24,7 @@ module stick_square(inner_square_leng, stick_leng, stick_thickness, cap_style) {
line3d(
[0, -half_stick_leng, 0],
[0, half_stick_leng, 0],
stick_thickness,
stick_diameter,
cap_style,
cap_style
);
@@ -38,7 +38,7 @@ module stick_square(inner_square_leng, stick_leng, stick_thickness, cap_style) {
}
sticks();
translate([0, 0, stick_thickness])
translate([0, 0, stick_diameter])
rotate(90)
sticks();
}
@@ -71,10 +71,10 @@ module spiral_stack(orig_leng, orig_height, current_leng, leng_diff, min_leng, a
}
}
height = stick_thickness * layer_offset;
height = stick_diameter * layer_offset;
$fn = stick_fn;
spiral_stack(inner_square_leng, stick_thickness * 2, inner_square_leng, leng_diff, min_leng, angle_offset)
spiral_stack(inner_square_leng, stick_diameter * 2, inner_square_leng, leng_diff, min_leng, angle_offset)
stick_square(
inner_square_leng,
stick_leng,