summaryrefslogtreecommitdiff
path: root/experimental/filament-spindle/spindle-tube-fitting.scad
blob: 3193ae2d8a419ead50f438a6e8b9cc0632b1a461 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
 *  Mendel Filament Spindle Tube Fitting
 *  DO NOT PRINT THIS - it's just used to cut out a mounting hole in the tube holder
 *  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>

tube_fitting_height = 20;

tube_fitting_exit_diameter = 10.7;
tube_fitting_exit_height = 8;

tube_fitting_entry_diameter = 10.6;

tube_fitting_inside_nut_height = 11.2;
//tube_fitting_inside_nut_depth = 4.7;
tube_fitting_inside_nut_depth = tube_fitting_height/2+2.5;

tube_fitting_outside_nut_height = 16.2;
tube_fitting_outside_nut_depth = 3.4;

module tube_fitting() {
	union() {

		// smaller diameter entry side
		//cylinder(tube_fitting_height, tube_fitting_entry_diameter/2, tube_fitting_entry_diameter/2, center=true);
		rotate([0,0,90]) {
			hole_horiz(tube_fitting_entry_diameter/2, tube_fitting_height);
		}

		// exit side
		/*
		translate([0, 0, -tube_fitting_height/2+tube_fitting_exit_height/2]) {
			cylinder(tube_fitting_exit_height, tube_fitting_exit_diameter/2, tube_fitting_exit_diameter/2, center=true);
		}
		*/

		// inside nut
		translate([0, 0, -tube_fitting_height/2+tube_fitting_inside_nut_depth/2]) {
			hexagon(tube_fitting_inside_nut_height, tube_fitting_inside_nut_depth);
		}

		// outside mounting nut
		translate([0, 0, tube_fitting_height/2-tube_fitting_outside_nut_depth/2]) {
			hexagon(tube_fitting_outside_nut_height, tube_fitting_outside_nut_depth);
		}
	}
}

//tube_fitting();