fix typo, add $slop support to robertson recess

This commit is contained in:
Adrian Mariano
2022-01-30 11:54:36 -05:00
parent 03e4491e72
commit 774b5c6b54
2 changed files with 16 additions and 7 deletions

View File

@@ -353,12 +353,13 @@ module robertson_mask(size, extra=1) {
F = (Fmin + Fmax) / 2 * INCH;
ang = 4;
h = T + extra;
Mslop=M+2*$slop;
down(T) {
intersection(){
Mtop = M + 2*adj_ang_to_opp(F+extra,ang);
Mbot = M - 2*adj_ang_to_opp(T-F,ang);
Mtop = Mslop + 2*adj_ang_to_opp(F+extra,ang);
Mbot = Mslop - 2*adj_ang_to_opp(T-F,ang);
prismoid([Mbot,Mbot],[Mtop,Mtop],h=h,anchor=BOT);
cyl(d1=0, d2=M/(T-F)*sqrt(2)*h, h=h, anchor=BOT);
cyl(d1=0, d2=Mslop/(T-F)*sqrt(2)*h, h=h, anchor=BOT);
}
}
}