// computed values
+slotslopediag = sqrt(1 + slotslope*slotslope);
+slotwidthx = slotwidth * slotslopediag;
+
+slotxperlen = slotslope / slotslopediag;
+slotyperlen = 1 / slotslopediag;
+
mainframeholex = backslotedgespace/2 + slotwidth/sqrt(2) +
backslotmid2screwhole / sqrt(2);
mainframeminy = mainframeholey - mainframeextrafront;
mainframemaxz = keepslotstartz + keepslotlen;
-slotslopediag = sqrt(1 + slotslope*slotslope);
-slotwidthx = slotwidth * slotslopediag;
-
-slotxperlen = slotslope / slotslopediag;
-slotyperlen = 1 / slotslopediag;
-
-echo(slotslope, slotslopediag, slotwidthx);
-
module MainFrame(){
for (m=[0,1]) {
mirror([m,0,0]) {