chiark / gitweb /
anke-gps-bracket: NestleCube: provide nestlearchslope parameter
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 3 Dec 2012 00:35:18 +0000 (00:35 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 3 Dec 2012 00:35:18 +0000 (00:35 +0000)
anke-gps-bracket.scad

index 8d83e0a..a54dc33 100644 (file)
@@ -83,6 +83,7 @@ chassist = 13;
 nestlefloorh = 1.7;
 nestleceilh = 2.0;
 nestlewallmin = 3.0;
+nestlearchslope = 0.75 * sqrt(0.5);
 
 // Consequential values
 holderdcw = DoveClipPairSane_width(holderdccount);
@@ -195,9 +196,9 @@ module NestleCubeCutout(ca,cb,d){
       linear_extrude(height=d+2){
        polygon([[ca+nestlebevel, cuth],
                 [ca, cuth+nestlebevel*2],
-                [ca, -dist/2-nestleceilh],
+                [ca, -dist/2/nestlearchslope-nestleceilh],
                 [(ca+cb)/2, -nestleceilh],
-                [cb, -dist/2-nestleceilh],
+                [cb, -dist/2/nestlearchslope-nestleceilh],
                 [cb, cuth+nestlebevel*2],
                 [cb-nestlebevel, cuth]]);
       }