chiark / gitweb /
bike-lipo-box: wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Feb 2016 23:05:40 +0000 (23:05 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Feb 2016 23:05:40 +0000 (23:05 +0000)
bike-lipo-box.scad

index 131e17d..de982d9 100644 (file)
@@ -133,11 +133,32 @@ module ProfileDemos(){ ////toplevel
 
 module Box(){ ////toplevel
   $sealingbox_sz = sb_box_sz;
-  rotate([90,0,0])
-    translate([-wallthick,-wallthick, -toty_inner])
-    SealingBox_RectBox();
-  color("blue")
-    cube([totx_inner, toty_inner, totz_inner]);
+
+  chargingconn_x = pxp6012_rad_outer + 1 + $sealingbox_cnrrad;
+  switch_x = chargingconn_x + pxp6012_rad_outer
+    + s1930_y_outer/2 + s1930_around;
+
+  difference(){
+    union(){
+      rotate([90,0,0])
+       translate([-wallthick,-wallthick, -toty_inner])
+       SealingBox_RectBox();
+
+      translate([switch_x, toty_inner, totz_inner/2])
+       rotate([90,0,90])
+       S1930_Positive();
+    }
+
+    // charging connector
+    translate([chargingconn_x,
+              toty_inner - (pxp6012_rad_outer + 5),
+              10])
+      cylinder(r= pxp6012_rad, h= totz_outer);
+
+    translate([switch_x, toty_inner, totz_inner/2])
+      rotate([90,0,90])
+      S1930_Negative();
+  }
 }
 
 //TestWall();