summaryrefslogtreecommitdiff
path: root/experimental/filament-spindle/spindle-tube-holder_1off.scad
blob: 6a9be820c2c87920d4f77f3e94d6b95b18395fd8 (plain)
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
/*
 *  Mendel Filament Spindle Tube Holder 1off
 *  by Tony Buser <tbuser@gmail.com>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

include <../mendel.inc>
include <../mendel.conf>

include <spindle.scad>
include <spindle-tube-fitting.scad>

tube_holder_width = rod_diameter+4; // 18
tube_holder_length = 28; // 41
tube_holder_height = 16; // 25

module tube_holder() {
	difference () {

		// TODO: add a chamfer?
		box(tube_holder_width, tube_holder_length, tube_holder_height);

		// rod hole
		translate([0, -tube_holder_length/2+rod_diameter/2+2, 0]) {
			spindle_hole_vert(tube_holder_height+2);
		}

		// tube fitting
		translate([0, tube_holder_length/2/2/2, 0]) {
			rotate([90, 0, 90]) {
				tube_fitting();
			}
		}
	}
}

translate([0, 0, tube_holder_height/2]) {
	tube_holder();
}