cylinder(r=screwcsinkdia/2 / (sqrt(3)/2), h=100, $fn=6);
}
+module PegTemplate(){
+ for (mx=[0,1]) for (my=[0,1]) {
+ mirror([mx,0,0]) mirror([0,my,0])
+ polygon([[-0.1, -0.1],
+ [pegstem/2, -0.1],
+ [pegstem/2, pegstemheight/2],
+ [peghead/2, pegheight /2],
+ [-0.1, pegheight /2]]);
+ }
+}
+
+module AtSides(){
+ translate([minx,0,0]) child(0);
+ translate([maxx,0,0]) mirror([1,0,0]) child(1);
+}
+
module Block(){
sidemidx = minsideout + screwcsinkdia/2;
}
}
-module PegTemplate(){
- for (mx=[0,1]) for (my=[0,1]) {
- mirror([mx,0,0]) mirror([0,my,0])
- polygon([[-0.1, -0.1],
- [pegstem/2, -0.1],
- [pegstem/2, pegstemheight/2],
- [peghead/2, pegheight /2],
- [-0.1, pegheight /2]]);
- }
-}
-
module Peg(){
echo("peg angle slope (must be <1)",
(peghead-pegstem)/(pegheight-pegstemheight));
}
}
-module AtSides(){
- translate([minx,0,0]) child(0);
- translate([maxx,0,0]) mirror([1,0,0]) child(1);
-}
-
module Cover(){
difference(){
union(){
Demo();
//Cover();
+//Peg();