chiark / gitweb /
fairphone-case: prop profile, introduce rot (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 27 Jan 2018 01:43:29 +0000 (01:43 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 27 Jan 2018 01:43:29 +0000 (01:43 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fairphone-case.scad

index eeeceb0e3f82848a5be3d37889a5dda7db7677bd..98fbe56cee7b3af2d3741fc9c8be80ecfe8cdee7 100644 (file)
@@ -622,7 +622,7 @@ module CaseBase(){
     EdgeProfile();
 }
 
     EdgeProfile();
 }
 
-module PropProfile(gamma, cut=0){ ////toplevel
+module PropProfile(gamma, cut=0, rot=0){ ////toplevel
   // https://en.wikipedia.org/wiki/Solution_of_triangles#Two_sides_and_the_included_angle_given_(SAS)
   k = hp_k;
   p = phone_height - prlp10[0] - hppB[0];
   // https://en.wikipedia.org/wiki/Solution_of_triangles#Two_sides_and_the_included_angle_given_(SAS)
   k = hp_k;
   p = phone_height - prlp10[0] - hppB[0];
@@ -689,7 +689,7 @@ module PropProfile(gamma, cut=0){ ////toplevel
     }
   }
   // main shaft
     }
   }
   // main shaft
-  rotate([0,0, cut ? -theta : 0]){
+  rotate([0,0, rot*-theta]){
     hull(){
       extra = cut ? prop_recess_slop : 0;
       rectfromto(prpp6, prpp9);
     hull(){
       extra = cut ? prop_recess_slop : 0;
       rectfromto(prpp6, prpp9);
@@ -1109,9 +1109,9 @@ module DemoProfiles(){ ////toplevel
 
   translate([40,-30]) {
     difference(){
 
   translate([40,-30]) {
     difference(){
-      %LidEdgeProfile();
-      //translate(prlp10)
-       //PropProfile(10, 1);
+      LidEdgeProfile();
+      translate(prlp10)
+       PropProfile(10, 1, 0);
     }
     translate(prlp10)
       PropProfile(15, 0);
     }
     translate(prlp10)
       PropProfile(15, 0);