3d/Ring_Nut.scad

29 lines
702 B
OpenSCAD
Raw Normal View History

2018-01-18 21:25:36 +00:00
INNER_DIMENSION=19;
HEIGHT=10;
EDGES=6;
FLATNESS=0.9;
THICKNESS=8;
$fn = 36;
difference() {
union() {
translate([0, 0, HEIGHT/5])
rotate([180, 0])
linear_extrude(height=HEIGHT/5, scale=FLATNESS) {
circle(d=INNER_DIMENSION+THICKNESS, $fn=EDGES);
}
translate([0, 0, HEIGHT/5])
linear_extrude(height=HEIGHT*3/5) {
circle(d=INNER_DIMENSION+THICKNESS, $fn=EDGES);
}
translate([0, 0, HEIGHT*4/5])
linear_extrude(height=HEIGHT/5, scale=FLATNESS) {
circle(d=INNER_DIMENSION+THICKNESS, $fn=EDGES);
}
}
linear_extrude(height=HEIGHT) {
circle(d=INNER_DIMENSION);
}
}