refactor sideWall

This commit is contained in:
zhao
2023-02-05 13:51:01 -05:00
parent cf481a4486
commit b8991a611c
2 changed files with 25 additions and 26 deletions

View File

@ -1,25 +1,14 @@
include <../helper/math.scad>
include <../helper/halfspace.scad>
include <../misc/magnet.scad>
include <./config.scad>
include <./mainRail.scad>
include <./side/sideWallMagnetMount.scad>
include <./sharedVariables.scad>
include <../../helper/math.scad>
include <../../helper/halfspace.scad>
include <../../misc/magnet.scad>
include <../config.scad>
include <./side/magnetModule.scad>
include <./side/hingeModule.scad>
include <./sideWallMagnetMount.scad>
include <./sideWallVariables.scad>
include <../sharedVariables.scad>
sideWallZGapClearance = 0.2;
sideWallZ = railTotalHeight - 2*(railFootThickness + sideWallZGapClearance);
sideWallY = yBarDepth;
sideWallXGapClearance = 0.2;
sideWallX = (yBarWidth-(railTotalWidth+railSlotToInnerYEdge)) - sideWallXGapClearance;
hingePoleDx = hingePoleToConnectorOuterYZFace + sideWallSlotToOuterYEdge;
hingePoleDy = hingePoleToConnectorOuterXZFace + sideWallSlotToOuterXEdge;
include <./magnetModule.scad>
include <./hingeModule.scad>
echo("Side Wall Height", sideWallZ);
echo("Side Wall Depth", sideWallY);
@ -29,7 +18,7 @@ module sideWall() {
applyHingeConnector()
applyMagnetConnector()
applyEpicVentilation()
applyHingeHandle()
applyHandle()
sideWallBase();
module sideWallBase() {
@ -118,7 +107,7 @@ module sideWall() {
children(0);
}
module applyHingeHandle() {
module applyHandle() {
children(0);
}
}
@ -128,8 +117,8 @@ sideWall();
translate(v=[10,sideWallSlotToXZ,-2])
mirror(v=[1,0,0])
magnetModule();
*magnetModule();
translate(v=[3,100,0])
mirror(v=[0,1,0])
hingeModule();
*hingeModule();

View File

@ -2,7 +2,6 @@
include <../config.scad>
include <../sharedVariables.scad>
sideWallConnW = 7;
sideWallConnD = 20;
sideWallConnH = 2;
@ -24,4 +23,15 @@ hingePoleH = 5;
hingeHoleR = hingePoleR + 0.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;