holeoffx = 0.33;
holeoffy = 0.23;
+indentdepth = 1;
+indentoutersize = holesize + 0.5;
+indentinnersize = indentoutersize - indentdepth * 2.5;
+
pegstem = 3.5;
peghead = 10;
pegstemheight = 2;
}
}
+module DecorativeIndents(){
+ translate([0, -front, 0])
+ rotate([90,0,0])
+ HexGrid(-5,5,-5,5) {
+ hull(){
+ translate([0, 0, -indentdepth])
+ cylinder(r=indentinnersize/2, h=indentdepth, $fn=40);
+ cylinder(r=indentoutersize/2, h=indentdepth, $fn=40);
+ }
+ }
+}
+
module Block(){
sidemidx = minsideout + screwcsinkdia/2;
translate([0, yshift * frontbackslop, 0])
DoKnives();
AtSides() { BlockPegSlot(); BlockPegSlot(); }
+ DecorativeIndents();
}
}
module HexGrid(imin,imax,jmin,jmax) {
for (i=[imin:imax]) {
for (j=[jmin:jmax]) {
- translate([j * sqrt(3) * holepitch,
- (i+0.5)*holepitch,
+ translate([(j * sqrt(3) + holeoffx) * holepitch,
+ (i + 0.5 + holeoffy) * holepitch,
0]) {
child();
translate([sqrt(3)/2 * holepitch, -0.5 * holepitch, 0])
jmin = ceil((maxx-minx)/(sqrt(3)*holepitch));
echo("Holes X count 2 x", jmin);
intersection(){
- translate([holeoffx * holepitch, holeoffy * holepitch, -20])
+ translate([0, 0, -20])
HexGrid(0,imax,-jmin,2)
Hole();
HolesScope();