chiark / gitweb /
fairphone-battery-case: PushHolePlan: Implement
[reprap-play.git] / fairphone-battery-case.scad
index 03eb0fb9b4d9b952342330271a647b345fb5fb76..5c58b9d8d62d28596c4ffcc87db775ff92d1402b 100644 (file)
@@ -1,5 +1,7 @@
 // -*- C -*-
 
+include <utils.scad>
+
 mainwall_th = 3.0;
 smallwall_th = 2.0;
 
@@ -118,7 +120,7 @@ module ExtrudePlan(from,to){
   rotate([0,-90,0])
   for (mj=[0,1]) {
     mirror([0,0,mj]) translate([0,0,from]){
-      linear_extrude(height= to-from){
+      linear_extrude(height= to-from, convexity=5){
        for (mi=[0,1]) {
          mirror([0,mi])
            translate([0, battery_th/2])
@@ -146,7 +148,10 @@ module PlanDemo(){ ////toplevel
 }
 
 module Base(){ ////toplevel
-  ExtrudePlan(0,s1) BaseHalfPlan();
+  difference(){
+    ExtrudePlan(0,s1) BaseHalfPlan();
+    linextr(-10, battery_len+10, convexity=5) PushHolePlan();
+  }
   difference(){
     union(){
       ExtrudePlan(s0i, s1) SideHalfPlan();