-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfishing_lure.scad
74 lines (59 loc) · 2.1 KB
/
fishing_lure.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
limb_w = 20;
limb_h = 30;
limb_d = 12;
s = 3;
margin = 0.5;
small_number = 0.001;
big_number = 200;
difference() {
union() {
translate([0,-limb_d/2,0]) cube([limb_w,limb_d,limb_h]);
cylinder(limb_h,limb_d/2,limb_d/2);
translate([limb_w,-limb_d/2,limb_h/4])
cube([limb_d/2+2*margin,limb_d,limb_h/2]);
translate([limb_w+limb_d/2+2*margin,0,limb_h/4])
cylinder(limb_h/2,limb_d/2,limb_d/2);
}
cylinder(big_number,limb_d/2-s,limb_d/2-s,center=true);
translate([limb_w+limb_d/2+2*margin,0,limb_h/4])
cylinder(big_number,limb_d/2-s+margin,limb_d/2-s+margin,center=true);
translate([-limb_d/2,-limb_d/2,limb_h/4-margin])
cube([limb_d+margin,limb_d,limb_h/2+margin*2]);
}
//screw
translate([0,30,0]) {
cylinder(limb_h,limb_d/2-s,limb_d/2-s);
translate([0,0,limb_h])cylinder(s,limb_d/2,limb_d/2);
}
//head
translate([40,0,0]) {
difference() {
union() {
translate([0,-limb_d/2,0]) cube([limb_w,limb_d,limb_h]);
cylinder(limb_h,limb_d/2,limb_d/2);
translate([limb_w,limb_d/2,0])rotate([90,0,0])linear_extrude(limb_d)polygon([[0,-s*2],[-limb_w,limb_h/2],[0,limb_h+s*2],[limb_w,limb_h/2+limb_d/2],[limb_w,limb_h/2-limb_d/2]]);
translate([limb_w*2,0,limb_h/2-limb_d/2]) cylinder(limb_d,limb_d/2,limb_d/2);
}
translate([limb_w,limb_d/2,limb_h*0.6]) sphere(limb_d/2);
translate([limb_w,-limb_d/2,limb_h*0.6]) sphere(limb_d/2);
cylinder(big_number,limb_d/2-s,limb_d/2-s,center=true);
translate([-limb_d/2,-limb_d/2,limb_h/4-margin])
cube([limb_d+margin,limb_d,limb_h/2+margin*2]);
translate([limb_w*2,0,0]) cylinder(big_number,limb_d/2-s,limb_d/2-s);
}
}
//tail
translate([-40,0,0]) {
difference() {
union() {
translate([0,-limb_d/2,0]) cube([limb_w,limb_d,limb_h]);
translate([limb_w,-limb_d/2,limb_h/4])
cube([limb_d/2+2*margin,limb_d,limb_h/2]);
translate([limb_w+limb_d/2+2*margin,0,limb_h/4])
cylinder(limb_h/2,limb_d/2,limb_d/2);
translate([0,limb_d/2,0])rotate([90,0,0])linear_extrude(limb_d)polygon([[0,-s*2],[-limb_w,limb_h/2],[0,limb_h+s*2],[limb_w,limb_h/2+limb_d/2],[limb_w,limb_h/2-limb_d/2]]);
}
translate([limb_w+limb_d/2+2*margin,0,limb_h/4])
cylinder(big_number,limb_d/2-s+margin,limb_d/2-s+margin,center=true);
}
}