-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathimpl_hex_corner.scad
More file actions
executable file
·103 lines (94 loc) · 3.47 KB
/
impl_hex_corner.scad
File metadata and controls
executable file
·103 lines (94 loc) · 3.47 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
include <impl_square.scad>
module plain_angled_corner_60(square_basis,edge_width) {
module half() {
difference() {
rotate([0,0,60]) difference() {
plain_square(2,2,square_basis,edge_width);
translate([square_basis*2,square_basis*1,-1]) rotate([0,0,30]) cube([square_basis*1+2, square_basis*2+2, HEIGHT+2]);
}
rotate([0,0,90]) translate([0,0,-1]) cube([square_basis*3,square_basis*3,8]);
}
}
half();
mirror([1,0,0]) half();
}
module connector_angled_corner_60_positive(square_basis,edge_width) {
module half() {
rotate([0,0,60]) {
connector_positive_strip(2, square_basis, edge_width, left=false, right=true);
translate([square_basis*2,0,0]) rotate([0,0,90]) connector_positive_strip(1, square_basis, edge_width);
}
}
half();
mirror([1,0,0]) half();
}
module connector_angled_corner_60_negative(square_basis,edge_width) {
module half() {
rotate([0,0,60]) {
connector_negative_strip(2, square_basis, edge_width, left=false, right=true);
translate([square_basis*2,0,0]) rotate([0,0,90]) connector_negative_strip(1, square_basis, edge_width);
}
}
half();
mirror([1,0,0]) half();
}
module plain_angled_corner_120(square_basis,edge_width) {
module half() {
difference() {
rotate([0,0,30]) translate([-square_basis,0,0]) plain_square(2,1,square_basis,edge_width);
rotate([0,0,90]) translate([-square_basis,0,-1]) cube([square_basis*3,square_basis*3,8]);
}
}
half();
mirror([1,0,0]) half();
}
module connector_angled_corner_120_positive(square_basis,edge_width) {
module half() {
rotate([0,0,30]) {
connector_positive_strip(1, square_basis, edge_width, left=false, right=true);
translate([square_basis,0,0]) rotate([0,0,90]) connector_positive_strip(1, square_basis, edge_width);
}
}
half();
mirror([1,0,0]) half();
}
module connector_angled_corner_120_negative(square_basis,edge_width) {
module half() {
rotate([0,0,30]) {
connector_negative_strip(1, square_basis, edge_width, left=false, right=true);
translate([square_basis,0,0]) rotate([0,0,90]) connector_negative_strip(1, square_basis, edge_width);
}
}
half();
mirror([1,0,0]) half();
}
module plain_angled_corner_240(square_basis,edge_width) {
module half() {
difference() {
rotate([0,0,-30]) translate([-square_basis,0,0]) plain_square(2,1,square_basis,edge_width);
rotate([0,0,90]) translate([-square_basis,0,-1]) cube([square_basis*3,square_basis*3,8]);
}
}
half();
mirror([1,0,0]) half();
}
module connector_angled_corner_240_positive(square_basis,edge_width) {
module half() {
rotate([0,0,-30]) {
connector_positive_strip(1, square_basis, edge_width, left=false, right=true);
translate([square_basis,0,0]) rotate([0,0,90]) connector_positive_strip(1, square_basis, edge_width);
}
}
half();
mirror([1,0,0]) half();
}
module connector_angled_corner_240_negative(square_basis,edge_width) {
module half() {
rotate([0,0,-30]) {
connector_negative_strip(1, square_basis, edge_width, left=false, right=true);
translate([square_basis,0,0]) rotate([0,0,90]) connector_negative_strip(1, square_basis, edge_width);
}
}
half();
mirror([1,0,0]) half();
}