Add option for fixed side modules. This simplifies assembly and removes some awkward printing topology
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
include <./common.scad>
|
||||
use <./slideHexNutsIntoYBar.scad>
|
||||
use <./addMagnetsToMagnetModules.scad>
|
||||
|
||||
$vpt = [116,90,18];
|
||||
$vpr = [56,0,42];
|
||||
@ -14,10 +15,22 @@ module attachXBarWithYBar(at=0) {
|
||||
|
||||
// assemble x-y bar trays
|
||||
multmatrix(translate(v = [0, 0, t]))
|
||||
slideHexNutsIntoYBar(at=1);
|
||||
|
||||
if (fixedSideModules) {
|
||||
multmatrix(inv4x4(yBarToMagnetModuleTrans))
|
||||
addMagnetsToMagnetModules(at=1); // same as slideHexNutsIntoYBar, but the magnet has already been inserted
|
||||
} else {
|
||||
slideHexNutsIntoYBar(at=1);
|
||||
}
|
||||
|
||||
|
||||
multmatrix(translate(v = [0, 0, t])*xBarSpaceToYBarSpace*xBarMirrorOtherCornerTrans*yBarSpaceToXBarSpace)
|
||||
slideHexNutsIntoYBar(at=1);
|
||||
if (fixedSideModules) {
|
||||
multmatrix(inv4x4(yBarToMagnetModuleTrans))
|
||||
addMagnetsToMagnetModules(at=1);
|
||||
} else {
|
||||
slideHexNutsIntoYBar(at=1);
|
||||
}
|
||||
|
||||
if (!plasticMask) {
|
||||
multmatrix(xBarSpaceToYBarSpace)
|
||||
|
||||
Reference in New Issue
Block a user