3d/Ring_Nut.scad
2018-01-18 22:25:36 +01:00

29 lines
702 B
OpenSCAD

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);
}
}