chiark / gitweb /
nook-case: wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 1 Sep 2020 23:03:53 +0000 (00:03 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 1 Sep 2020 23:03:53 +0000 (00:03 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
nook-case.scad

index 720dcf2c5ac7a20f6ebd4bfb0d9bf18ceca0c7c2..e814e912d72e2e21be5a9760f966ed206b38b4eb 100644 (file)
@@ -95,6 +95,38 @@ module Demo(){ ////toplevel
   //%SideTapeCutout();
 }
 
+module FaceCore(y0,y1){
+  nom_cnr = 0.5 * [nook_w, nook_h, 0] - nook_cnr_rad * [1,1,0];
+
+  for (mx=[0,1]) mirror([mx,0,0]) {
+      for (my=[0,1]) mirror([0,my,0]) {
+         translate(-nom_cnr) {
+           rotate_extrude(angle=90, convexity=10)
+             translate(-[1,0,0] * nook_cnr_rad)
+             children(0);
+         }
+       }
+      translate([nook_w/2, 0,0])
+       linextr_y_xz(-nom_cnr[1]-0.1, nom_cnr[1]+0.1)
+       children(0);
+    }
+  for (my=[0,1]) mirror([0,my,0]) {
+      translate([0, -nook_h/2, 0])
+       linextr_x_yz(-nom_cnr[0]-0.1, nom_cnr[0]+0.1)
+       children(0);
+    }
+}
+
+module Base(){ ////toplevel
+  FaceCore(0,0)
+    SideMainProfile();
+}
+
+module Top(){ ////toplevel
+  FaceCore(0,0)
+    TopMainProfile();
+}
+
 module TestExtrude(){
   difference(){
     linextr_y_xz(-test_pillar, tape_w+test_pillar) children(0);