-
Notifications
You must be signed in to change notification settings - Fork 0
/
base_vertex.scad
87 lines (81 loc) · 2.53 KB
/
base_vertex.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
75
76
77
78
79
80
81
82
83
84
85
86
87
use <Libs.scad>
include <ss_parms.scad>
use <end_strut.scad>
use <strut_dummies.scad>
libEcho = false;
base_vertex_d();
module base_vertex_a(){
union(){
difference(){
//main body
translate([0,0, es_height/2])
cylinder(r = bv_radius, h = es_height, center = true);
translate([-bs_outset + 1.5 * bs_height + 3, -bv_radius-0.5, -0.5])
cube([bv_radius+1, 2*bv_radius+1, es_height+1]);
// end strut flats and female dovetails
translate([-es_length - (sqrt(pow(bv_radius,2) - pow(es_width/2,2))),- es_width/2, -0.01])
es_dummy();
rotate(a = [0,0,-60]){
translate([-es_length - (sqrt(pow(bv_radius,2) - pow(es_width/2,2))),- es_width/2, -0.01])
es_dummy();
}
// base strut mounting
rotate(a = [0,0,180])
translate([-bs_outset, -bs_width/2, bv_width])
rotate(a = [0,-90,0])
bs_dummy();
}
// male dovetails
translate([- (sqrt(pow(bv_radius,2) - pow(es_width/2,2))), -es_width/2 + 6.75, es_height/2])
mirror([1,0,0])
dovetail(male = true, height = es_height);
rotate(a = [0,0,-60])
translate([- (sqrt(pow(bv_radius,2) - pow(es_width/2,2))), -es_width/2 + 6.75, es_height/2])
mirror([1,0,0])
dovetail(male = true, height = es_height);
}
}
module base_vertex_b(){
mirror([1,0,0])
union(){
difference(){
//main body
translate([0,0, es_height/2])
cylinder(r = bv_radius, h = es_height, center = true);
translate([-bs_outset + 1.5 * bs_height + 3, -bv_radius-0.5, -0.5])
cube([bv_radius+1, 2*bv_radius+1, es_height+1]);
// end strut flats and female dovetails
translate([-es_length - (sqrt(pow(bv_radius,2) - pow(es_width/2,2))),- es_width/2, -0.01])
translate([0,es_width,0])
mirror([0,1,0])
es_dummy();
rotate(a = [0,0,-60]){
translate([-es_length - (sqrt(pow(bv_radius,2) - pow(es_width/2,2))),- es_width/2, -0.01])
translate([0,es_width,0])
mirror([0,1,0])
es_dummy();
}
// base strut mounting
rotate(a = [0,0,180])
translate([-bs_outset, -bs_width/2, bv_width])
rotate(a = [0,-90,0])
bs_dummy();
}
// male dovetails
translate([- (sqrt(pow(bv_radius,2) - pow(es_width/2,2))), es_width/2 - 6.75, es_height/2])
mirror([1,0,0])
dovetail(male = true, height = es_height);
rotate(a = [0,0,-60])
translate([- (sqrt(pow(bv_radius,2) - pow(es_width/2,2))), es_width/2 - 6.75, es_height/2])
mirror([1,0,0])
dovetail(male = true, height = es_height);
}
}
module base_vertex_c(){
mirror([1,0,0])
base_vertex_a();
}
module base_vertex_d(){
mirror([1,0,0])
base_vertex_b();
}