From 57ce411e18aacb2af986ee807b795011cea83d05 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 2 Sep 2020 00:03:53 +0100 Subject: [PATCH] nook-case: wip Signed-off-by: Ian Jackson --- nook-case.scad | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/nook-case.scad b/nook-case.scad index 720dcf2..e814e91 100644 --- a/nook-case.scad +++ b/nook-case.scad @@ -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); -- 2.30.2