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:
e55979c
)
sewing-table: fold in InterlockLobeCore (nfc)
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 2 Jan 2017 14:50:49 +0000
(14:50 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 2 Jan 2017 14:50:49 +0000
(14:50 +0000)
sewing-table.scad.m4
patch
|
blob
|
history
diff --git
a/sewing-table.scad.m4
b/sewing-table.scad.m4
index 9880e2bae0dc6fabbb5554b9da67ced22880121a..dc94aae3cce1ecc718120db6b3b03b46fa6f3f0e 100644
(file)
--- a/
sewing-table.scad.m4
+++ b/
sewing-table.scad.m4
@@
-139,10
+139,15
@@
module InterlockLobePlan(r, ymir) {
}
}
}
}
-module Interlock
LobeCore(negative=0
) {
+module Interlock
Edge(left_cnr, right_cnr, negative=0, nlobes=2
) {
r = negative ? interlock_negative_rad : interlock_rad;
plusth = negative * 1.0;
ymir = negative ? 0 : 1;
r = negative ? interlock_negative_rad : interlock_rad;
plusth = negative * 1.0;
ymir = negative ? 0 : 1;
+
+ INREFFRAME(left_cnr, right_cnr) {
+ for (lobei = [ 0 : nlobes-1 ]) {
+ lobex = (length - thehd[0]*2) * (lobei ? lobei / (nlobes-1) : 0);
+ translate([lobex, 0, 0]) {
translate([0, 0, plusth]){
mirror([0,0,1]){
linear_extrude(height=tile_th+plusth*2, convexity=10){
translate([0, 0, plusth]){
mirror([0,0,1]){
linear_extrude(height=tile_th+plusth*2, convexity=10){
@@
-150,14
+155,7
@@
module InterlockLobeCore(negative=0) {
}
}
}
}
}
}
-}
-
-module InterlockEdge(left_cnr, right_cnr, negative=0, nlobes=2) {
- INREFFRAME(left_cnr, right_cnr) {
- for (lobei = [ 0 : nlobes-1 ]) {
- lobex = (length - thehd[0]*2) * (lobei ? lobei / (nlobes-1) : 0);
- translate([lobex, 0, 0])
- InterlockLobeCore(negative);
+ }
}
}
}
}
}
}