refactor sideWall
This commit is contained in:
@ -1,25 +1,14 @@
|
|||||||
include <../helper/math.scad>
|
include <../../helper/math.scad>
|
||||||
include <../helper/halfspace.scad>
|
include <../../helper/halfspace.scad>
|
||||||
include <../misc/magnet.scad>
|
include <../../misc/magnet.scad>
|
||||||
include <./config.scad>
|
include <../config.scad>
|
||||||
include <./mainRail.scad>
|
|
||||||
include <./side/sideWallMagnetMount.scad>
|
|
||||||
include <./sharedVariables.scad>
|
|
||||||
|
|
||||||
include <./side/magnetModule.scad>
|
include <./sideWallMagnetMount.scad>
|
||||||
include <./side/hingeModule.scad>
|
include <./sideWallVariables.scad>
|
||||||
|
include <../sharedVariables.scad>
|
||||||
|
|
||||||
|
include <./magnetModule.scad>
|
||||||
sideWallZGapClearance = 0.2;
|
include <./hingeModule.scad>
|
||||||
sideWallZ = railTotalHeight - 2*(railFootThickness + sideWallZGapClearance);
|
|
||||||
|
|
||||||
sideWallY = yBarDepth;
|
|
||||||
|
|
||||||
sideWallXGapClearance = 0.2;
|
|
||||||
sideWallX = (yBarWidth-(railTotalWidth+railSlotToInnerYEdge)) - sideWallXGapClearance;
|
|
||||||
|
|
||||||
hingePoleDx = hingePoleToConnectorOuterYZFace + sideWallSlotToOuterYEdge;
|
|
||||||
hingePoleDy = hingePoleToConnectorOuterXZFace + sideWallSlotToOuterXEdge;
|
|
||||||
|
|
||||||
echo("Side Wall Height", sideWallZ);
|
echo("Side Wall Height", sideWallZ);
|
||||||
echo("Side Wall Depth", sideWallY);
|
echo("Side Wall Depth", sideWallY);
|
||||||
@ -29,7 +18,7 @@ module sideWall() {
|
|||||||
applyHingeConnector()
|
applyHingeConnector()
|
||||||
applyMagnetConnector()
|
applyMagnetConnector()
|
||||||
applyEpicVentilation()
|
applyEpicVentilation()
|
||||||
applyHingeHandle()
|
applyHandle()
|
||||||
sideWallBase();
|
sideWallBase();
|
||||||
|
|
||||||
module sideWallBase() {
|
module sideWallBase() {
|
||||||
@ -118,7 +107,7 @@ module sideWall() {
|
|||||||
children(0);
|
children(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
module applyHingeHandle() {
|
module applyHandle() {
|
||||||
children(0);
|
children(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -128,8 +117,8 @@ sideWall();
|
|||||||
|
|
||||||
translate(v=[10,sideWallSlotToXZ,-2])
|
translate(v=[10,sideWallSlotToXZ,-2])
|
||||||
mirror(v=[1,0,0])
|
mirror(v=[1,0,0])
|
||||||
magnetModule();
|
*magnetModule();
|
||||||
|
|
||||||
translate(v=[3,100,0])
|
translate(v=[3,100,0])
|
||||||
mirror(v=[0,1,0])
|
mirror(v=[0,1,0])
|
||||||
hingeModule();
|
*hingeModule();
|
||||||
@ -2,7 +2,6 @@
|
|||||||
include <../config.scad>
|
include <../config.scad>
|
||||||
include <../sharedVariables.scad>
|
include <../sharedVariables.scad>
|
||||||
|
|
||||||
|
|
||||||
sideWallConnW = 7;
|
sideWallConnW = 7;
|
||||||
sideWallConnD = 20;
|
sideWallConnD = 20;
|
||||||
sideWallConnH = 2;
|
sideWallConnH = 2;
|
||||||
@ -24,4 +23,15 @@ hingePoleH = 5;
|
|||||||
hingeHoleR = hingePoleR + 0.2;
|
hingeHoleR = hingePoleR + 0.2;
|
||||||
|
|
||||||
hingePoleToConnectorOuterYZFace = hingePoleR/2;
|
hingePoleToConnectorOuterYZFace = hingePoleR/2;
|
||||||
hingePoleToConnectorOuterXZFace = hingePoleR/2;
|
hingePoleToConnectorOuterXZFace = hingePoleR/2;
|
||||||
|
|
||||||
|
sideWallZGapClearance = 0.2;
|
||||||
|
sideWallZ = railTotalHeight - 2*(railFootThickness + sideWallZGapClearance);
|
||||||
|
|
||||||
|
sideWallY = yBarDepth;
|
||||||
|
|
||||||
|
sideWallXGapClearance = 0.2;
|
||||||
|
sideWallX = (yBarWidth-(railTotalWidth+railSlotToInnerYEdge)) - sideWallXGapClearance;
|
||||||
|
|
||||||
|
hingePoleDx = hingePoleToConnectorOuterYZFace + sideWallSlotToOuterYEdge;
|
||||||
|
hingePoleDy = hingePoleToConnectorOuterXZFace + sideWallSlotToOuterXEdge;
|
||||||
|
|||||||
Reference in New Issue
Block a user