chiark / gitweb /
scaffold-clamp-cleat: sort out toplevels
[reprap-play.git] / hole-repair-20191117.scad
index e4682a03157935d5fbadbc9fdd0270c25d2ae019..0138c6741254a7e400bd6e1e57ba4b3666385d0e 100644 (file)
@@ -1,21 +1,24 @@
 // -*- C -*-
 
 post_dia = 23.0;
+post_height = 20;
 
 th = 4;
 
-nom_hole = 22;
+nom_hole = 25;
 min_r = 15 + nom_hole/2;
-maj_r = 30 + nom_hole/2;
+maj_r = 15 + nom_hole/2;
 
-//$fa=1;
-//$fs=1;
+postwall_th = 2;
+
+$fa=1;
+$fs=1;
 
 module Profile(r) {
-  polygon([ [0,        0],
-           [maj_r,    0],
-           [maj_r-th, th],
-           [0,        th] ]);
+  polygon([ [0,    0],
+           [r,    0],
+           [r-th, th],
+           [0,    th] ]);
 }
 
 module Body(){
@@ -27,4 +30,20 @@ module Body(){
   }
 }
 
-Body();
+module Post(){
+  difference(){
+    translate([0,0,-1])
+      cylinder(r= post_dia/2, h= post_height+1);
+    translate([0,0,-2])
+      cylinder(r= post_dia/2 - postwall_th, h= post_height+3);
+  }
+}
+
+module Cover(){
+  rotate([0,180,0]) Body();
+  Post();
+}
+
+//Body();
+//Post();
+Cover();