forked from JohK/nutsnbolts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
examples.scad
60 lines (37 loc) · 1.67 KB
/
examples.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
// Norm Nuts and Bolts - a OpenSCAD library
// Copyright (C) 2012 Johannes Kneer
// 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, see <http://www.gnu.org/licenses/>.
// USAGE EXAMPLES
include <cyl_head_bolt.scad>;
include <materials.scad>;
// == example nut catches and holes ==
difference() {
translate([-15, -15, 0]) cube([80, 30, 50]);
rotate([180,0,0]) nutcatch_parallel("M5", l=5);
translate([0, 0, 50]) hole_through(name="M5", l=50+5, cl=0.1, h=10, hcl=0.4);
translate([55, 0, 9]) nutcatch_sidecut("M8", l=100, clk=0.1, clh=0.1, clsl=0.1);
translate([55, 0, 50]) hole_through(name="M8", l=50+5, cl=0.1, h=10, hcl=0.4);
translate([27.5, 0, 50]) hole_threaded(name="M5", l=60);
}
// == example nuts and screws ==
$fn=60;
translate([0,50, 0]) stainless() screw("M20x100", thread="modeled");
translate([0,50,-120]) stainless() nut("M20", thread="modeled");
translate([30,50,0]) screw("M12x60");
translate([30,50,-80]) nut("M12");
translate([50,50,0]) screw("M5x20");
translate([50,50,-30]) nut("M5");
//key("M5");
// == example db lookups ==
//echo(_get_fam("M8"));
//echo(_get_screw("M5x8"));
//echo(_get_screw_fam("M5x8"));