}
}
-module InterlockLobePlan(r, ymir) {
+module InterlockLobePlan(negative) {
+ r = negative ? interlock_negative_rad : interlock_rad;
+ ymir = negative ? 0 : 1;
+
dx = sqrt(3) * r;
$fn= 80;
translate([thehd[0], 0]){
}
}
+module InterlockEdgePlan(negative, nlobes, length) {
+ for (lobei = [ 0 : nlobes-1 ]) {
+ lobex = (length - thehd[0]*2) * (lobei ? lobei / (nlobes-1) : 0);
+ translate([lobex, 0, 0]) {
+ InterlockLobePlan(negative);
+ }
+ }
+}
+
module InterlockEdge(left_cnr, right_cnr, negative=0, nlobes=2) {
- r = negative ? interlock_negative_rad : interlock_rad;
plusth = negative * 1.0;
- ymir = negative ? 0 : 1;
INREFFRAME(left_cnr, right_cnr) {
- translate([0, 0, plusth]){
- mirror([0,0,1]){
- linear_extrude(height=tile_th+plusth*2, convexity=10){
- for (lobei = [ 0 : nlobes-1 ]) {
- lobex = (length - thehd[0]*2) * (lobei ? lobei / (nlobes-1) : 0);
- translate([lobex, 0, 0]) {
- InterlockLobePlan(r, ymir);
- }
- }
- }
+ translate([0, 0, plusth]){
+ mirror([0,0,1]){
+ linear_extrude(height=tile_th+plusth*2, convexity=10){
+ InterlockEdgePlan(negative, nlobes, length);
+ }
}
}
}