// Drip Irrigation Line Stakes (1/4" and 16 mm)
// Original design. Free to print for personal and educational use (CC BY-NC 4.0).
// Units: millimetres. Edit the numbers below and press F6 in OpenSCAD to re-render.

// Generated from the same geometry as drip-line-stake-16mm.stl

difference() {
  union() {
    difference() {
      cylinder(d=21, h=8, $fn=48);
      translate([0,0,-1])
        cylinder(d=16.2, h=10, $fn=48);
      translate([-21,-6.48,-1])
        cube([21,12.96,10]);
    }
    hull() {
      translate([9.5,-6,0])
        cube([0.01,12,5]);
      translate([139.5,0,0])
        cylinder(d=2, h=5, $fn=48);
    }
    hull() {
      translate([9.5,-1.5,0])
        cube([0.01,3,9]);
      translate([119.5,-1.5,0])
        cube([0.01,3,5]);
    }
  }
  translate([0,0,-1])
    cylinder(d=16.2, h=10, $fn=48);
}
