From f924000a4ac0515dd2ec671fe6b1e110b23caccb Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Wed, 25 Sep 2019 20:59:47 +0800 Subject: [PATCH] add joint_T --- src/part/joint_T.scad | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/part/joint_T.scad diff --git a/src/part/joint_T.scad b/src/part/joint_T.scad new file mode 100644 index 00000000..296dd75e --- /dev/null +++ b/src/part/joint_T.scad @@ -0,0 +1,18 @@ +module joint_T(shaft_r, shaft_h, t_leng, ring_thickness, spacing) { + ring_r = shaft_r + spacing + ring_thickness; + module joint_ring() { + hollow_out(ring_thickness) + circle(ring_r); + } + + ring_height = shaft_h / 3 - spacing; + linear_extrude(ring_height) joint_ring(); + translate([0, 0, shaft_h - ring_height]) + linear_extrude(ring_height) joint_ring(); + + translate([0, 0, shaft_h / 2]) + linear_extrude(shaft_h / 3, center = true) + line2d([0, 0], [t_leng, 0], shaft_r * 2, p1Style = "CAP_BUTT", p2Style = "CAP_BUTT"); + + linear_extrude(shaft_h) circle(shaft_r); +} \ No newline at end of file