chiark / gitweb /
earring-stand: reorg a bit, test alpha
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 23 Jul 2016 13:11:03 +0000 (14:11 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 23 Jul 2016 13:11:03 +0000 (14:11 +0100)
earring-stand.scad

index 5b3cd9e..805fe0f 100644 (file)
@@ -9,6 +9,8 @@ eclip_inner_xstrt = 0.5;
 eclip_ult_angle = 44;
 eclip_base_epsilon = 0.5;
 
+test_alpha = 10;
+
 // calculated
 
 include <utils.scad>
@@ -44,11 +46,11 @@ module EclipLPlan(alpha){
   rotate(alpha) EclipLPlanCore(alpha);
 }
 
-module EclipPPlanCore(main_th){
+module EclipPPlan(main_th){
   intersection(){
     hull(){
       circle(r0);
-      rotate(45) square([r0,r0]);
+      rotate(90-eclip_ult_angle) square([r0,r0]);
     }
     translate([-(r0+.1), -(r0+.1)])
       square([(r0+.1) + main_th + ppxl, r2*2]);
@@ -56,5 +58,5 @@ module EclipPPlanCore(main_th){
   translate([ppxl, 0]) square([main_th, r2]);
 }
 
-color("red") EclipLPlanCore(10);
-color("blue") EclipPPlanCore(1.5);
+color("red") EclipLPlan(test_alpha);
+color("blue") rotate(test_alpha) EclipPPlan(1.5);