}
module BlockPegSlot(){
- translate([recessblockwidth/2, pegrecess - 0.5*peglen, -height]){
+ translate([recessblockwidth/2, pegrecess - peglen, -height]){
rotate([-90,0,0]) linear_extrude(height=totaldepth){
PegTemplate(peghead/2 * 1.2);
}
echo("Holes Y count ", imax);
for (i=[0:imax]) {
translate([0, (i+0.5)*holepitch, -20])
- cylinder(r=holesize/2, h=40, $fn=20);
+ cylinder(r=holesize/2, h=40, $fn=40);
}
}
}
module Holes(){
- imin = ceil((maxx-minx)/(sqrt(3)*holepitch));
- echo("Holes X count 2 x", imin);
+ jmin = ceil((maxx-minx)/(sqrt(3)*holepitch));
+ echo("Holes X count 2 x", jmin);
intersection(){
translate([holeoffx * holepitch, holeoffy * holepitch, 0]) {
- for (i=[-imin:2]) {
- translate([i * sqrt(3) * holepitch, 0, 0]) {
+ for (j=[-jmin:2]) {
+ translate([j * sqrt(3) * holepitch, 0, 0]) {
HoleRow();
translate([sqrt(3)/2 * holepitch, -0.5 * holepitch, 0])
HoleRow();
color([1,0,0]) AtSides() { DemoPeg(); DemoPeg(); }
}
+module Pegs(){ ////toplevel
+ Peg();
+ translate([-peghead-3, 0,0]) Peg();
+}
+
module CoverParts(){ ////toplevel
Cover();
- translate([0, coverlonglen, pegheight/2]) {
- Peg();
- translate([-peghead-3, 0,0]) Peg();
- }
+ translate([0, coverlonglen, pegheight/2-pegslopv])
+ Pegs();
}
//Block();
//CoverParts();
//Peg();
//Cover();
+//Holes();
+//%CoverTemplate();
+//Pegs();