-
Notifications
You must be signed in to change notification settings - Fork 12
/
optic_plate_support.scad
57 lines (49 loc) · 1.73 KB
/
optic_plate_support.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
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// secondsight Visor project
// Copyright 2013 by secondsight.io, Some Rights Reserved.
//
// Define the tab/slot system for attaching the optics plate to the body.
// Fit factors
slide_gap=0.25;
fit_gap=0.15;
// Tab sizing
tab_length=3;
tab_height=1;
module support_slot( depth )
{
long=tab_length+2*slide_gap;
height=tab_height+2*fit_gap;
translate( [ 0, 0, height/2 ] ) cube( [ long, depth, height ], center=true );
}
module support_tab( depth )
{
long=tab_length;
height=tab_height;
translate( [ 0, 0, height/2 ] ) cube( [ long, depth, height ], center=true );
}
module support_ledge_slots( x_off, y_off, z_off )
{
gap=1.1;
depth=2;
spread=10;
drop=15+gap;
translate( [-spread, y_off+gap, z_off+0.1] ) support_slot( depth );
translate( [ spread, y_off+gap, z_off+0.1] ) support_slot( depth );
translate( [ x_off+gap, -drop, z_off+0.1] ) rotate( [ 0, 0, 90 ] ) support_slot( depth );
translate( [-(x_off+gap), -drop, z_off+0.1] ) rotate( [ 0, 0, 90 ] ) support_slot( depth );
}
module support_ledge_tabs( x_off, y_off, z_off )
{
gap=1.1;
fudge=0.1;
depth=gap+1-fit_gap;
spread=10;
drop=15;
gap_off=depth/2-fudge;
translate( [-spread, y_off+gap_off, z_off+fudge] ) support_tab( depth );
translate( [ spread, y_off+gap_off, z_off+fudge] ) support_tab( depth );
translate( [ x_off+gap_off, -drop, z_off+fudge] ) rotate( [ 0, 0, 90 ] ) support_tab( depth );
translate( [-(x_off+gap_off), -drop, z_off+fudge] ) rotate( [ 0, 0, 90 ] ) support_tab( depth );
}