// -*- C -*-
+include <utils.scad>
+
phone = [ 75.0, 145.0 ];
-bumper = [ 0.250, 0.250 ];
+bumper = [ 0.250, -0.025 ];
// ^ One side. Overall size is increased by twice this.
// If no bumpers, is the gap around the phone.
hppT = hppM + 0.5 * [0,+1] * hp_k;
hppB = hppM + 0.5 * [0,-1] * hp_k;
-module rectfromto(a,b) {
- ab = b - a;
- translate([min(a[0], b[0]), min(a[1], b[1])])
- square([abs(ab[0]), abs(ab[1])]);
-}
-module circleat(c,r) { translate(c) circle(r); }
-module linextr(z0,z1) {
- translate([0,0,z0])
- linear_extrude(height=z1-z0)
- children();
-}
+// ---------- modules ----------
module KeeperProfile(slant=0){
use_e = kppe + [0,-1] * slant * keeper_inner_width / keeper_slant_slope;
}
}
+module TestSelectLength(){
+ translate([-30, -200, -20])
+ cube([30 + 15, 250, 40]);
+}
+
module TestLength(){ ////toplevel
intersection(){
Case();
- translate([-30, -200, -20])
- cube([30 + 15, 250, 40]);
+ TestSelectLength();
+ }
+}
+
+module TestLengthRight(){ ////toplevel
+ intersection(){
+ Case();
+ CaseBase_rhsflip(1)
+ TestSelectLength();
}
}