chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sewing-table: make corners be cycles (nfc)
[reprap-play.git]
/
sewing-table.scad.m4
diff --git
a/sewing-table.scad.m4
b/sewing-table.scad.m4
index 9b114137eced6173d0cf394df8dfb298f6f24eee..b5ee987370ca4272e9687b97106b90797b7d8483 100644
(file)
--- a/
sewing-table.scad.m4
+++ b/
sewing-table.scad.m4
@@
-163,8
+163,8
@@
module Interlock(this_cnr, right_cnr) {
function TestPiece_holes2corners(holes) =
[ holes[0] + thehd_bl,
holes[1] + thehd_br,
function TestPiece_holes2corners(holes) =
[ holes[0] + thehd_bl,
holes[1] + thehd_br,
- holes[
0] + thehd_tl
,
- holes[
1] + thehd_tr
];
+ holes[
1] + thehd_tr
,
+ holes[
0] + thehd_tl
];
module TestPiece1(){ ////toplevel
holes = [ [-100, 0],
module TestPiece1(){ ////toplevel
holes = [ [-100, 0],
@@
-172,12
+172,12
@@
module TestPiece1(){ ////toplevel
];
corners = TestPiece_holes2corners(holes);
difference(){
];
corners = TestPiece_holes2corners(holes);
difference(){
- TileBase(corners[0], corners[
3
]);
- InterlockNegative(corners[1], corners[
3
]);
+ TileBase(corners[0], corners[
2
]);
+ InterlockNegative(corners[1], corners[
2
]);
}
Posts(holes);
RoundEdge(corners[0], corners[1]);
}
Posts(holes);
RoundEdge(corners[0], corners[1]);
- RoundEdge(corners[
2
], corners[0]);
+ RoundEdge(corners[
3
], corners[0]);
RoundLeftCorner(corners[0], corners[1]);
}
RoundLeftCorner(corners[0], corners[1]);
}
@@
-186,10
+186,10
@@
module TestPiece2(){ ////toplevel
[ 50, 0]
];
corners = TestPiece_holes2corners(holes);
[ 50, 0]
];
corners = TestPiece_holes2corners(holes);
- TileBase(corners[0], corners[
3
]);
+ TileBase(corners[0], corners[
2
]);
Posts(holes);
RoundEdge(corners[0], corners[1]);
Posts(holes);
RoundEdge(corners[0], corners[1]);
- Interlock(corners[
2
], corners[0]);
+ Interlock(corners[
3
], corners[0]);
}
module Demo(){ ////toplevel
}
module Demo(){ ////toplevel