-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathz-slider2.scad
79 lines (73 loc) · 2.85 KB
/
z-slider2.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
include<constants.scad>;
use <vslot.scad>;
xExtrusionWidthSections = 1;
xExtrusionDepthSections = 2;
xEndClosed = true;
yExtrusionWidthSections = 1;
yExtrusionDepthSections = 2;
yEndClosed = false;
sliderSpacing=5;
sliderTolerance=0.9;
tolerance=0.8;
wallWidth=7;
screwOffset=5;
slideHeight = profileSize - 5.5;
xExtrusionLength = 2 * profileSize*1 + 2*wallWidth;
yExtrusionLength = yExtrusionDepthSections * profileSize*2/3;
screwHeight=wallWidth+vslotIndentHeight;
ZSliderBracket();
module ZSliderBracket(
xExtrusionWidthSections = xExtrusionWidthSections,
xExtrusionDepthSections = xExtrusionDepthSections,
xExtrusionLength = xExtrusionLength,
yExtrusionWidthSections = yExtrusionWidthSections,
yExtrusionDepthSections = yExtrusionDepthSections,
yExtrusionLength = yExtrusionLength,
lengthHoleSpacing = profileSize,
tolerance = tolerance,
sliderTolerance = sliderTolerance
)
{
difference() {
hull() {
translate([wallWidth, slideHeight, 0])
rotate([90,90,0])
drawVslotExtrusion(
height=yExtrusionLength+slideHeight+sliderSpacing,
sectionCountWidth=yExtrusionWidthSections,
sectionCountDepth=yExtrusionDepthSections,
topIndent = false,
bottomIndent = false,
rightIndent = false,
leftIndent = false,
oversize = wallWidth*2
);
translate([0,-wallWidth,-wallWidth-xExtrusionWidthSections*profileSize])
cube([xExtrusionLength,slideHeight+wallWidth,wallWidth*2+xExtrusionWidthSections*profileSize]);
};
rotate([0,90,0])
drawVslotExtrusion(
height=xExtrusionLength,
sectionCountWidth=xExtrusionWidthSections,
sectionCountDepth=xExtrusionDepthSections,
oversize=sliderTolerance,
screwOffset = screwOffset,
screwHeight=screwHeight,
topIndent = false
);
translate([wallWidth, -sliderSpacing, 0])
rotate([90,90,0])
drawVslotExtrusion(
height=yExtrusionLength+vslotIndentHeight,
sectionCountWidth=yExtrusionWidthSections,
sectionCountDepth=yExtrusionDepthSections,
rightIndent=!avoidSupports,
leftScrewPoints = [yExtrusionLength-profileSize/2],
rightScrewPoints = [yExtrusionLength-profileSize/2],
//backScrewPoints = [for (i = [0:yExtrusionDepthSections]) i*profileSize + profileSize/2],
oversize=tolerance,
screwOffset = screwOffset,
screwHeight=yExtrusionLength/2
);
}
}