1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-31 18:22:08 +02:00
This commit is contained in:
Justin Lin
2019-09-26 09:12:14 +08:00
parent e4ac6dcb98
commit 78b45beaa2

View File

@@ -6,8 +6,8 @@ module joint_T(shaft_r, shaft_h, t_leng, ring_thickness, spacing = 0.5, center =
} }
ring_height = shaft_h / 3 - spacing; ring_height = shaft_h / 3 - spacing;
half_h = shaft_h / 2;
translate(center ? [0, 0, -shaft_h / 2] : [0, 0, 0]) { translate(center ? [0, 0, -half_h] : [0, 0, 0]) {
linear_extrude(ring_height) linear_extrude(ring_height)
joint_ring(); joint_ring();
@@ -15,7 +15,7 @@ module joint_T(shaft_r, shaft_h, t_leng, ring_thickness, spacing = 0.5, center =
linear_extrude(ring_height) linear_extrude(ring_height)
joint_ring(); joint_ring();
translate([t_leng / 2, 0, shaft_h / 2]) translate([t_leng / 2, 0, half_h])
linear_extrude(shaft_h / 3, center = true) linear_extrude(shaft_h / 3, center = true)
square([t_leng, shaft_r * 2], center = true); square([t_leng, shaft_r * 2], center = true);