c[2] + thehd_bl,
c[3] + thehd_br ];
+module Rectangle_TileBase(c) { TileBase(c[0], c[2]); }
+
m4_dnl R_EDGE(c,ix)
m4_dnl c is from Rectangle_corners and
m4_dnl ix is a corner number
c0 = -sz;
c = Rectangle_corners(c0, sz);
posts = Rectangle_corners2posts(c);
- rcs = [c[0], c[1]];
+ rcs = [R_EDGE(c,0)];
difference(){
union(){
- TileBase(c[0], c[2]);
+ Rectangle_TileBase(c);
Posts(posts);
RoundEdge(R_EDGE(c,0));
RoundEdge(R_EDGE(c,3));
c0 = [-sz[0], 0];
c = Rectangle_corners(c0, sz);
posts = Rectangle_corners2posts(c);
- rcs = [c[3], c[0]];
+ rcs = [R_EDGE(c,3)];
difference(){
union(){
- TileBase(c[0], c[2]);
+ Rectangle_TileBase(c);
+ Posts(posts);
RoundEdge(R_EDGE(c,2));
RoundEdge(R_EDGE(c,3));
- Posts(posts);
}
InterlockEdge(R_EDGE(c,0), 1);
InterlockEdge(R_EDGE(c,1), 1);