chiark / gitweb /
anke-gps-bracket: NestleCube: add floor, adjust some sizes
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 2 Dec 2012 18:06:37 +0000 (18:06 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 2 Dec 2012 18:06:37 +0000 (18:06 +0000)
anke-gps-bracket.scad

index 2f05e45ba7e94334be440ca3d800fe7ab940ad8a..d774efba96d397df81b9e210edd84caafa011f71 100644 (file)
@@ -54,9 +54,6 @@ nestleddf = 4.0;
 nestleddbl = 3.3;
 nestleddbr = 3.6;
 
-nestlewallmin = 4;
-nestleceilmin = 4;
-
 // Adjustment for the GPS attitude and position
 gpsazimuth = 45;
 gpselevation = 40;
@@ -87,6 +84,9 @@ holderdccount = 2;
 holderdoveclipl = 15;
 chassish = 13;
 chassist = 13;
+nestlefloorh = 2.0;
+nestleceilh = 2.0;
+nestlewallmin = 3.0;
 
 // Consequential values
 holderdcw = DoveClipPairSane_width(holderdccount);
@@ -192,14 +192,18 @@ module GpsPlugT(){ ////toplevel
 
 module NestleCubeCutout(ca,cb,d){
   dist = cb - ca;
+  cuth = -nestleh + nestlefloorh;
   mirror([0,1,0]){
+    translate([0,1,0])
     rotate([90,0,0]){
-      linear_extrude(height=d){
-       polygon([[ca, -nestleh-1],
-                [ca, -dist/2],
-                [(ca+cb)/2, 0],
-                [cb, -dist/2],
-                [cb, -nestleh-1]]);
+      linear_extrude(height=d+2){
+       polygon([[ca+nestlebevel, cuth],
+                [ca, cuth+nestlebevel*2],
+                [ca, -dist/2-nestleceilh],
+                [(ca+cb)/2, -nestleceilh],
+                [cb, -dist/2-nestleceilh],
+                [cb, cuth+nestlebevel*2],
+                [cb-nestlebevel, cuth]]);
       }
     }
   }
@@ -248,8 +252,8 @@ module NestleCube(){ ////toplevel
                    [7,8,9],[5,6,7],[7,9,5]],
         convexity=3);
       intersection(){
-       NestleCubeCutout(cutw1, cutw0, max(nestledl,nestledr));
-       rotate([0,0,90]) NestleCubeCutout(cutd0, cutd1, nestlew);
+       #NestleCubeCutout(cutw1, cutw0, max(nestledl,nestledr));
+       #rotate([0,0,90]) NestleCubeCutout(cutd0, cutd1, nestlew);
       }
       translate([0,0,-nestleh]) {
        translate([-nestledwr, 0, 0]) NestleCubeBevel();