- for (lobei = [ 0 : nlobes-1 ]) {
- lobex = (length - thehd[0]*2) * (lobei ? lobei / (nlobes-1) : 0);
- translate([lobex, 0, 0])
- InterlockLobeCore(negative);
+ for (vsect = [ // zs0 zs1 ys0, ys1
+ [ -tile_th-plusth, plusth, 0, 0],
+ [ z1, z2, 0, protr],
+ [ z2, z3, protr, 0],
+ ]) {
+ zs0 = vsect[0];
+ zs1 = vsect[1];
+ zsd = zs1-zs0;
+ ys0 = vsect[2];
+ ys1 = vsect[2];
+ ysd = ys1-ys0;
+ multmatrix([ [ 1,0,0,0 ],
+ [ 0,1,0,0 ],
+ [ 0,0,1,zs0 ],
+ [ 0,0,0,1 ] ])
+ linear_extrude(height=zsd, convexity=10)
+ InterlockEdgePlan(negative, nlobes, length);