}
}
-module RoundCornerCut(this_cnr, right_cnr) {
+module RoundCornerCut(ci) {
+ this_cnr = ci[0];
+ right_cnr = ci[1];
offr= round_cnr_rad - round_edge_rad;
INREFFRAME(this_cnr, right_cnr) INREFFRAME_EDGE {
difference(){
}
}
-module RoundCornerAdd(this_cnr, right_cnr) {
+module RoundCornerAdd(ci) {
+ this_cnr = ci[0];
+ right_cnr = ci[1];
bigr = round_cnr_rad - round_edge_rad;
INREFFRAME(this_cnr, right_cnr) INREFFRAME_EDGE {
intersection(){
c0 = -sz;
c = Rectangle_corners(c0, sz);
posts = Rectangle_corners2posts(c);
+ rcs = [c[0], c[1]];
difference(){
union(){
TileBase(c[0], c[2]);
InterlockEdge(c[2], c[3], 0);
}
InterlockEdge(c[1], c[2], 1);
- RoundCornerCut(c[0], c[1]);
+ RoundCornerCut(rcs);
}
- RoundCornerAdd(c[0], c[1]);
+ RoundCornerAdd(rcs);
}
module Tile12(){ ////toplevel
c0 = [-sz[0], 0];
c = Rectangle_corners(c0, sz);
posts = Rectangle_corners2posts(c);
+ rcs = [c[2], c[3]];
difference(){
union(){
TileBase(c[0], c[2]);
Posts(posts);
}
InterlockEdge(c[0], c[1], 1);
- RoundCornerCut(c[2], c[3]);
+ RoundCornerCut(rcs);
}
- RoundCornerAdd(c[2], c[3]);
+ RoundCornerAdd(rcs);
}
module Demo(){ ////toplevel