Welcome to mirror list, hosted at ThFree Co, Russian Federation.

glassHolder.scad - github.com/haydnhuntley/kumu-3d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2bfccedf5ac03af606508948cdfffb4080c3d423 (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
69
70
71
72
73
74
75
76
77
78
// This is a glass holder for a 300mm diameter piece, with space for a
// silicone heating pad underneath it.  It secures to 2020 extrusions.
//
// With 5mm glass, it should work with M5x20 screws.
// I get my 300mm glass (and 250mm 12v or 24v silicone heaters)
// from RobotDigg.com
// Three of these pieces are used with a 300mm diameter round glass in my
// design.
//
// Haydn Huntley
// haydn.huntley@gmail.com


$fn = 360/2;

include <configuration.scad>;

debug = false;
glassRadius  = 300/2;
glassHeight  = 5.0;
spacerHeight = 8.0;

// All measurements in mm.
extraHeight  = 2.00;
height       = glassHeight+extraHeight;
overhang     = 3.00;
minWallWidth = 4*nozzleWidth;

// For printing, flip it over.
rotate([180, 0, 0])
translate([0, 0, -height])
difference()
{
	// The body.
	cylinder(r=extrusionWidth/2, h=height);

	// Carve out space for the glass.
	translate([glassRadius+m5ButtonHeadRadius/2+minWallWidth, 0, -smidge/2])
	cylinder(r=glassRadius, h=glassHeight+smidge);

	// Make the overhang smaller.
	translate([glassRadius+m5ButtonHeadRadius/2+minWallWidth, 0, -smidge/2])
	cylinder(r=glassRadius-overhang, h=height+smidge);

	if (debug)
	{
		// Show the M5x20 screw.
		translate([0, 0, 7])
		rotate([180, 0, 0])
%		cylinder(r=5/2, h=20);

		// Show how far the screw needs to extend.
		rotate([180, 0, 0])
#		cylinder(r=5/2, h=5+spacerHeight);
	}

	// Make a hole for the M5x20 bolt.
	translate([0, 0, -smidge/2])
	cylinder(r=m5LooseRadius, h=height+smidge);

	// For cutaway view.
	if (debug)
		translate([0, 0, -smidge])
		cube([20, 20, 20]);
}


// The spacer to leave room for the silicone heater.
translate([extrusionWidth, 0, 0])
difference()
{
	// The body.
	cylinder(r=extrusionWidth/2, h=spacerHeight);

	// Make a hole for the M5x20 screw.
	translate([0, 0, -smidge/2])
	cylinder(r=m5LooseRadius, h=spacerHeight+smidge);
}