Read time: 0.0 minutes (1 words)

part: wire_shaft

Design Notes

(None)

part Design File

prop/wire_shaft/wire_shaft.scad
 1//######################################
 2// wire-shaft.scad
 3// (c) 2021 Roie R. Black
 4//**************************************
 5include <colors.scad>
 6include <wire_shaft.data>
 7$fn=100;
 8
 9
10module wire_shaft() {
11  r = wire_diameter/2;
12  translate([length,0,0]) {
13    rotate([0,90,-90])
14      color(METAL_Steel) {
15        // hook
16        translate([-hook_radius/2,1.5*hook_radius,0])
17        rotate_extrude(angle=270, convexity=10)
18          translate([hook_radius, 0])
19            circle(r);
20
21        // 90 degree bend
22        translate([-hook_radius/2,0,0])
23          rotate_extrude(angle=90, convexity=10)
24            translate([hook_radius/2, 0])
25              circle(r);
26
27        // straight shaft
28        translate([0,0,0])
29          rotate([90,0,0])
30            cylinder(r=r,h=length);
31
32        // 90 degree bend
33        translate([-hook_radius/2,-length,0])
34          rotate_extrude(angle=-90, convexity=10)
35            translate([hook_radius/2,0])
36              circle(r);
37
38        // final straight
39        translate([-hook_radius/2,-length- hook_radius/2,0])
40          rotate([0,-90,0])
41            cylinder(r=r,h=stub_length);
42    }
43  }
44}
45
46//-------------------------------------
47// debug display
48
49wire_shaft();