2012-03-12 01:13:07 +00:00
|
|
|
//
|
|
|
|
// Mendel90
|
|
|
|
//
|
|
|
|
// GNU GPL v2
|
|
|
|
// nop.head@gmail.com
|
|
|
|
// hydraraptor.blogspot.com
|
|
|
|
//
|
|
|
|
// Linear bearings
|
|
|
|
//
|
2018-10-27 03:49:20 -04:00
|
|
|
LM12UU = [30, 21, 12];
|
2012-03-12 01:13:07 +00:00
|
|
|
LM10UU = [29, 19, 10];
|
|
|
|
LM8UU = [24, 15, 8];
|
|
|
|
LM6UU = [19, 12, 6];
|
|
|
|
LM4UU = [12, 8, 4];
|
|
|
|
|
2014-06-12 23:12:59 +01:00
|
|
|
function bearing_length(type) = type[0];
|
|
|
|
function bearing_radius(type) = type[1] / 2;
|
|
|
|
function bearing_rod_dia(type) = type[2];
|
2012-12-24 13:15:00 +00:00
|
|
|
|
2012-03-12 01:13:07 +00:00
|
|
|
module linear_bearing(type) {
|
|
|
|
vitamin(str("LM",type[2],"UU: ","LM",type[2],"UU linear bearing"));
|
2012-11-15 17:45:30 +00:00
|
|
|
color(bearing_color) render() rotate([0,90,0]) difference() {
|
2012-12-24 13:15:00 +00:00
|
|
|
cylinder(r = bearing_radius(type), h = type[0], center = true);
|
2012-03-12 01:13:07 +00:00
|
|
|
cylinder(r = type[2] / 2, h = type[0] + 1, center = true);
|
|
|
|
}
|
|
|
|
}
|