}
}
-module InterlockNegative(this_cnr, right_cnr) {
+module Interlock(this_cnr, right_cnr, negative=0) {
INREFFRAME(this_cnr, right_cnr)
- InterlockCore(interlock_negative_rad, 1, 0);
-}
-
-module Interlock(this_cnr, right_cnr) {
- INREFFRAME(this_cnr, right_cnr)
- InterlockCore(interlock_rad, 0, 1);
+ InterlockCore(negative ? interlock_negative_rad : interlock_rad,
+ negative ? 1 : 0,
+ negative ? 0 : 1);
}
function TestPiece_holes2corners(holes) =
corners = TestPiece_holes2corners(holes);
difference(){
TileBase(corners[0], corners[2]);
- InterlockNegative(corners[1], corners[2]);
+ Interlock(corners[1], corners[2], 1);
}
Posts(holes);
RoundEdge(corners[0], corners[1]);