chiark / gitweb /
hole-repair-20191117: abandon roundedness
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 17 Nov 2019 22:07:03 +0000 (22:07 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 17 Nov 2019 22:07:03 +0000 (22:07 +0000)
For printing face side down

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
hole-repair-20191117.scad

index 5f33f47eecd0f73559545f90977ef062017b6948..e4682a03157935d5fbadbc9fdd0270c25d2ae019 100644 (file)
@@ -12,20 +12,10 @@ maj_r = 30 + nom_hole/2;
 //$fs=1;
 
 module Profile(r) {
-  prof_r = th/(1-cos(45));
-  prof_R = r - prof_r * cos(45);
-
-  intersection(){
-    hull(){
-      translate([0, th-prof_r]){
-       translate([1,0])
-         square(center=true, 2*[1,prof_r]);
-       translate([prof_R, 0])
-         circle(prof_r);
-      }
-    }
-    square([r, th]);
-  }
+  polygon([ [0,        0],
+           [maj_r,    0],
+           [maj_r-th, th],
+           [0,        th] ]);
 }
 
 module Body(){