chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4bfa6f0
)
earring-stand: reorg a bit, test alpha
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 23 Jul 2016 13:11:03 +0000
(14:11 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 23 Jul 2016 13:11:03 +0000
(14:11 +0100)
earring-stand.scad
patch
|
blob
|
history
diff --git
a/earring-stand.scad
b/earring-stand.scad
index 5b3cd9e4ac36e9b5060d0b85f4120efee4943633..805fe0fe3247f6540a3979205783647390d04ef8 100644
(file)
--- a/
earring-stand.scad
+++ b/
earring-stand.scad
@@
-9,6
+9,8
@@
eclip_inner_xstrt = 0.5;
eclip_ult_angle = 44;
eclip_base_epsilon = 0.5;
eclip_ult_angle = 44;
eclip_base_epsilon = 0.5;
+test_alpha = 10;
+
// calculated
include <utils.scad>
// calculated
include <utils.scad>
@@
-44,11
+46,11
@@
module EclipLPlan(alpha){
rotate(alpha) EclipLPlanCore(alpha);
}
rotate(alpha) EclipLPlanCore(alpha);
}
-module EclipPPlan
Core
(main_th){
+module EclipPPlan(main_th){
intersection(){
hull(){
circle(r0);
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]);
}
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]);
}
translate([ppxl, 0]) square([main_th, r2]);
}
-color("red") EclipLPlan
Core(10
);
-color("blue")
EclipPPlanCore
(1.5);
+color("red") EclipLPlan
(test_alpha
);
+color("blue")
rotate(test_alpha) EclipPPlan
(1.5);