chiark / gitweb /
anke-gps-bracket: NestleCubeCeilTest: new toplevel
[reprap-play.git] / anke-gps-bracket.scad
index 81c39f3e86c7ae2cb5650848bc8d33454cc97762..9200e1eb32ce771ecb4898bf697e153059891e99 100644 (file)
@@ -1,9 +1,5 @@
 // -*- C -*-
 
-// todo
-// nestlecube does not fit
-// nestlecube doveclip at wrong angle
-
 include <doveclip.scad>
 
 // Dimensions of the main GPS body
@@ -48,11 +44,11 @@ nestlew = 60.9;
 nestledl = 38.3 + 1.9;
 nestledr = 42.2 + 1.7;
 //   differences in width, depth, at bottom:
-nestledwl = 3.0;
-nestledwr = 2.4;
-nestleddf = 4.0;
-nestleddbl = 3.3;
-nestleddbr = 3.6;
+nestledwl = nestlew - 50.0;
+nestledwr = nestlew - 58.5;
+nestleddf = nestledl - 36.2;
+nestleddbl = nestledl - 36.9;
+nestleddbr = nestledr - 36.9;
 
 // Adjustment for the GPS attitude and position
 gpsazimuth = 45;
@@ -70,7 +66,7 @@ plughstep = 1.5;
 bodylhsrhsslop = 0.5;
 holderhgap = 5;
 holderbezelmore = 2;
-nestlebevel = 2;
+nestlebevel = 1;
 
 // Dimensions for strength only
 screent = 1.0;
@@ -84,7 +80,7 @@ holderdccount = 2;
 holderdoveclipl = 15;
 chassish = 13;
 chassist = 13;
-nestlefloorh = 2.0;
+nestlefloorh = 1.7;
 nestleceilh = 2.0;
 nestlewallmin = 3.0;
 
@@ -209,13 +205,6 @@ module NestleCubeCutout(ca,cb,d){
   }
 }
 
-module NestleCubeBevel(rot){
-  rotate([0,0,rot])
-    translate([-nestlebevel, -100, -0.1])
-    rotate([0,30,0])
-    cube([nestlebevel*2, 200, nestlebevel*5]);
-}
-
 module NestleCube(){ ////toplevel
   midw = nestlew/2;
   midd = min(nestledl,nestledr);
@@ -260,7 +249,6 @@ module NestleCube(){ ////toplevel
                    [2,3,8],[8,7,2],
                    [3,4,9],[9,8,3],
                    [4,0,5],[5,9,4],
-                   [0,1,6],[6,5,0],
                    // bevels
                    [6,7,12],[12,11,6],
                    [7,8,13],[13,12,7],
@@ -279,12 +267,28 @@ module NestleCube(){ ////toplevel
   }
 
   translate([gpsrightwardoffset,-gpsrearwardoffset,0])
-    rotate([0,0,gpsazimuth])
+    rotate([0,0,90+gpsazimuth])
     translate([nestledoveclipw/2,0,DoveClip_depth()-0.5])
     rotate([0,-90,0])
     DoveClipPairSane(count=3, h=nestledoveclipw);
 }
 
+module NestleCubeBaseTest(){ ////toplevel
+  intersection(){
+    translate([0,0,nestleh]) NestleCube();
+    translate([-100,-100,0]) cube([200,200,nestlebevel*5]);
+  }
+  cube([5,5,10]);
+}
+
+module NestleCubeCeilTest(){ ////toplevel
+  intersection(){
+    translate([0,0,3]) NestleCube();
+    translate([-100,-100,0]) cube([200,200,5.5]);
+  }
+  cube([5,5,10]);
+}
+
 module NestleCubePin(){ ////toplevel
   DoveClipPin(nestledoveclipw*0.4);
 }
@@ -355,6 +359,8 @@ module Pins(){ ///toplevel
 //GpsAssembled();
 //GpsBody();
 //NestleCube();
+//NestleCubeBaseTest();
+//NestleCubeCeilTest();
 //NestleCubePin();
 //HolderSideL();
 //HolderSideR();