3d/Tube_Plug.scad

23 lines
426 B
OpenSCAD
Raw Normal View History

2018-01-10 19:45:36 +00:00
INNER_DIAMETER=8;
RAISE_DIAMETER=1;
RAISE_NUM=2;
RAISE_HEIGHT=2;
HEIGHT=16;
HEAD_DIAMETER=12;
HEAD_HEIGHT=4;
$fn=36;
// Head
cylinder(d=HEAD_DIAMETER, h=HEAD_HEIGHT);
translate([0, 0, HEAD_HEIGHT]) {
// Middle
cylinder(d=INNER_DIAMETER, h=HEIGHT);
// Raise
for(i = [0 : RAISE_NUM+1]) {
translate([0, 0, RAISE_HEIGHT*2*i])
cylinder(d=INNER_DIAMETER + RAISE_DIAMETER, h=RAISE_HEIGHT);
}
}