cuts.scad 2.24 KB
include<vars.scad>

module cornerdrills(hull=true) {
  #translate([24+12,9,170]) {
    cylinder(d=12,h=100, $fn=20);
  }
#translate([24,9,0]) {
    if (hull == true) {
      hull() {
        cylinder(d=6,h=500, $fn=20);
        translate([15,0,0])
          cylinder(d=6,h=500, $fn=20);
      }
    } else {
      cylinder(d=6,h=500, $fn=20);
      translate([15,0,0])
        cylinder(d=6,h=500, $fn=20);
    }
  }

#translate([3+4.2+1,3+45+2.5,0]) {
    if (hull == true) {
      hull() {
        cylinder(d=6,h=400, $fn=20);
        translate([0,-6+23.5,0]) cylinder(d=6,h=400, $fn=20);
      }
    } else {
      cylinder(d=6,h=400, $fn=20);
      translate([0,-6+23.5,0]) cylinder(d=6,h=400, $fn=20);
    }
  }
translate([3+4.2,3+45+2.5,0]) {
    cylinder(d=12,h=100, $fn=20);
  }
}

module draindrills(x,y) {
  /* translate([x/2,y/2,-5]) { */
  /*   #cylinder(d=1,h=10); */
  /* } */

  minX = gratesize+strength+6;
  minY = gratesize+strength+6;
  maxX = x-gratesize-strength-6;
  maxY = y-gratesize-strength-6;

  /* echo(minX); */
  /*   echo(maxX); */
    for (mmx =[minX,maxX])
      for (mmy =[minY,maxY])
        translate([ mmx
                    , mmy
                    , -50
                    ]) cylinder(d=6,h=100, $fn=10);

  for (xx =[1:5])
    for (yy =[1:5])
      translate([x/6*xx,y/6*yy,-5])
        cylinder(d=10,h=100, $fn=10);


  /* translate([x/2,y/4,-5]) { */
  /*   #cylinder(d=1,h=10); */
  /* } */
  /* translate([x/4,y/2,-5]) { */
  /*   #cylinder(d=1,h=10); */
  /* } */
}

module gx12drill(z) {
  translate([gxXPos,gxYPos,0])
    cylinder(d=12,h=100, $fn=20);
  translate([gxXPos,gxYPos,z-20])
    cylinder(d=12,h=100, $fn=20);
  translate([gxXPos,gxYPos,z-40])
    cylinder(d=6,h=100, $fn=20);
}

module pipedrill() {
  translate([288,381,0]) cylinder(d=6,h=500, $fn=20);
  translate([293,373,0]) cylinder(d=6,h=500, $fn=20);
}

module drills(x,y,z, hull=true) {
  draindrills(x,y);
  cornerdrills(hull);
  mirror([0,1,0]) translate([0,-y,0]) cornerdrills(hull);
  mirror([1,0,0]) translate([-x,0,0]) cornerdrills(hull);
  mirror([1,0,0]) translate([-x,y,0]) mirror([0,1,0]) cornerdrills(hull);
  mirror([1,0,0]) translate([-x,0,0]) gx12drill(z);
  mirror([1,0,0]) translate([-x,0,0]) rotate([0,0,90]) translate([-35,-14,0]) gx12drill(z);
  pipedrill();
}