chiark / gitweb /
nook-case: wip, different L and R sides in mains
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 2 Sep 2020 20:20:29 +0000 (21:20 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 2 Sep 2020 20:20:29 +0000 (21:20 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
nook-case.scad

index fe55097be3fd1c644a1509999b5508e08c328bfa..6217e6e73b174e3b231d5a818f7c3ae523e20157 100644 (file)
@@ -124,12 +124,12 @@ module FaceCore(z0,z1){
          translate(-nom_cnr) {
            rotate_extrude(angle=90, convexity=10)
              translate(-[1,0,0] * nook_cnr_rad)
-             children(0);
+             children(mx);
          }
        }
       translate([nook_w/2, 0,0])
        linextr_y_xz(-nom_cnr[1]-0.1, nom_cnr[1]+0.1)
-       children(0);
+       children(1-mx);
     }
   for (my=[0,1]) mirror([0,my,0]) {
       translate([0, -nook_h/2, 0])
@@ -143,13 +143,17 @@ module FaceCore(z0,z1){
 }
 
 module Base(){ ////toplevel
-  FaceCore(0,0)
-    SideMainProfile();
+  FaceCore(0,0) {
+    LeftSideMainProfile();
+    RightSideMainProfile();
+  }
 }
 
 module Top(){ ////toplevel
-  FaceCore(0,0)
-    TopMainProfile();
+  FaceCore(0,0) {
+    LeftTopMainProfile();
+    RightTopMainProfile();
+  }
 }
 
 module TestExtrude(){