-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathperpendicular-bracket.scad
89 lines (82 loc) · 3.09 KB
/
perpendicular-bracket.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
88
89
include<constants.scad>;
use <vslot.scad>;
xExtrusionWidthSections = 2;
xExtrusionDepthSections = 1;
xExtrusionLength = 60;
xEndClosed = true;
yExtrusionWidthSections = 2;
yExtrusionDepthSections = 1;
yExtrusionLength = 40;
yEndClosed = false;
wallWidth=7;
screwHeight=wallWidth+vslotIndentHeight;
screwOffset=5;
PerpendicularBracket(avoidSupports=false);
module PerpendicularBracket(
xExtrusionWidthSections = xExtrusionWidthSections,
xExtrusionDepthSections = xExtrusionDepthSections,
xExtrusionLength = xExtrusionLength,
yExtrusionWidthSections = yExtrusionWidthSections,
yExtrusionDepthSections = yExtrusionDepthSections,
yExtrusionLength = yExtrusionLength,
lengthHoleSpacing = profileSize,
tolerance = tolerance,
avoidSupports = false,
)
{
difference() {
hull() {
rotate([0,90,0])
drawVslotExtrusion(
height=xExtrusionLength,
sectionCountWidth=xExtrusionWidthSections,
sectionCountDepth=xExtrusionDepthSections,
oversize=tolerance,
topIndent = false,
bottomIndent = false,
rightIndent = false,
leftIndent = false,
oversize = wallWidth*2
);
translate([(xExtrusionLength-profileSize*yExtrusionDepthSections)/2, 0, 0])
rotate([90,90,0])
drawVslotExtrusion(
height=yExtrusionLength,
sectionCountWidth=yExtrusionWidthSections,
sectionCountDepth=yExtrusionDepthSections,
oversize=tolerance,
topIndent = false,
bottomIndent = false,
rightIndent = false,
leftIndent = false,
oversize = wallWidth*2
);
};
rotate([0,90,0])
drawVslotExtrusion(
height=xExtrusionLength,
sectionCountWidth=xExtrusionWidthSections,
sectionCountDepth=xExtrusionDepthSections,
oversize=tolerance,
rightIndent=!avoidSupports,
leftScrewPoints = [profileSize/2, xExtrusionLength-profileSize/2],
bottomScrewPoints = [profileSize/2, xExtrusionLength-profileSize/2],
screwOffset = screwOffset,
screwHeight=screwHeight
);
translate([(xExtrusionLength-profileSize*yExtrusionDepthSections)/2, vslotIndentHeight, 0])
rotate([90,90,0])
drawVslotExtrusion(
height=yExtrusionLength+vslotIndentHeight,
sectionCountWidth=yExtrusionWidthSections,
sectionCountDepth=yExtrusionDepthSections,
rightIndent=!avoidSupports,
leftScrewPoints = [profileSize/2, yExtrusionLength-profileSize/2],
bottomScrewPoints = [yExtrusionLength-profileSize/2],
topScrewPoints = [yExtrusionLength-profileSize/2],
oversize=tolerance,
screwOffset = screwOffset,
screwHeight=yExtrusionLength/2
);
}
}