Unfinished changes.
This commit is contained in:
@@ -5,6 +5,7 @@ use <../common/washer.scad>;
|
||||
use <../fixings/angle_bracket_20_20.scad>;
|
||||
use <../fixings/door_hinge.scad>;
|
||||
use <../fixings/mitre_bracket.scad>;
|
||||
use <../glovebox_base/base_plate.scad>;
|
||||
use <../glovebox_door/glovebox_door.scad>;
|
||||
use <../glovebox_rear_panel/glovebox_rear_panel.scad>;
|
||||
use <./skeleton_beam.scad>;
|
||||
@@ -27,7 +28,7 @@ module glovebox_shell(angle_door_from_closed) {
|
||||
translate([
|
||||
0
|
||||
, R_SKELETON_BEAM_CENTRES[1] / 2 * (index_beam_on_y == 0 ? 1 : -1)
|
||||
, L_LEG + D_BEAM_SKELETON / 2 + (index_beam_on_z == 0 ? 0 : R_SKELETON_BEAM_CENTRES[2])
|
||||
, L_LEG + R_BASE_PLATE[2] + T_GASKET_RUBBER + D_BEAM_SKELETON / 2 + (index_beam_on_z == 0 ? 0 : R_SKELETON_BEAM_CENTRES[2])
|
||||
])
|
||||
rotate([0, 90, 0])
|
||||
// skeleton_beam(length_beam_on_x);
|
||||
@@ -43,7 +44,7 @@ module glovebox_shell(angle_door_from_closed) {
|
||||
translate([
|
||||
R_SKELETON_BEAM_CENTRES[0] / 2 * (index_beam_on_x == 0 ? 1 : -1)
|
||||
, 0
|
||||
, L_LEG + D_BEAM_SKELETON / 2 + (index_beam_on_z == 0 ? 0 : R_SKELETON_BEAM_CENTRES[2])
|
||||
, L_LEG + R_BASE_PLATE[2] + T_GASKET_RUBBER + D_BEAM_SKELETON / 2 + (index_beam_on_z == 0 ? 0 : R_SKELETON_BEAM_CENTRES[2])
|
||||
])
|
||||
rotate([90, 0, 0])
|
||||
// skeleton_beam(length_beam_on_y);
|
||||
@@ -51,12 +52,13 @@ module glovebox_shell(angle_door_from_closed) {
|
||||
// Joints
|
||||
}
|
||||
}
|
||||
/*
|
||||
for (index_beam_on_x = [0 : 1 : COUNT_BASE_SUPPORT_BEAMS_ON_Y - 1]) {
|
||||
// Beams
|
||||
translate([
|
||||
R_INTERNAL[0] / 2 - D_BEAM_SKELETON / 2 - OFFSET_X_BASE_BEAM_SUPPORTS - (index_beam_on_x) * (R_INTERNAL[0] - D_BEAM_SKELETON - OFFSET_X_BASE_BEAM_SUPPORTS * 2) / (COUNT_BASE_SUPPORT_BEAMS_ON_Y - 1)
|
||||
, 0
|
||||
, L_LEG - D_BEAM_SKELETON / 2
|
||||
, L_LEG + R_BASE_PLATE[2] + T_GASKET_RUBBER - D_BEAM_SKELETON / 2
|
||||
])
|
||||
rotate([90, 0, 0])
|
||||
// skeleton_beam(R_EXTERNAL[1]);
|
||||
@@ -65,48 +67,51 @@ module glovebox_shell(angle_door_from_closed) {
|
||||
for (index_support_on_x = [0 : 1 : 1]) {
|
||||
for (index_support_on_y = [0 : 1 : 1]) {
|
||||
translate([
|
||||
R_INTERNAL[0] / 2 - D_BEAM_SKELETON / 2 - OFFSET_X_BASE_BEAM_SUPPORTS - (index_beam_on_x) * (R_INTERNAL[0] - D_BEAM_SKELETON - OFFSET_X_BASE_BEAM_SUPPORTS * 2) / (COUNT_BASE_SUPPORT_BEAMS_ON_Y - 1)
|
||||
, 0
|
||||
, 0
|
||||
])
|
||||
mirror([index_support_on_x, 0, 0]) mirror([0, index_support_on_y, 0]) translate([D_BEAM_SKELETON / 2, R_SKELETON_BEAM_CENTRES[1] / 2, L_LEG])
|
||||
rotate([180, 0, 0])
|
||||
// angle_bracket_20_20();
|
||||
import("../fixings/angle_bracket_20_20.stl");
|
||||
R_INTERNAL[0] / 2 - D_BEAM_SKELETON / 2 - OFFSET_X_BASE_BEAM_SUPPORTS - (index_beam_on_x) * (R_INTERNAL[0] - D_BEAM_SKELETON - OFFSET_X_BASE_BEAM_SUPPORTS * 2) / (COUNT_BASE_SUPPORT_BEAMS_ON_Y - 1)
|
||||
, 0
|
||||
, 0
|
||||
])
|
||||
mirror([index_support_on_x, 0, 0]) mirror([0, index_support_on_y, 0]) translate([D_BEAM_SKELETON / 2, R_SKELETON_BEAM_CENTRES[1] / 2, L_LEG + R_BASE_PLATE[2] + T_GASKET_RUBBER])
|
||||
rotate([180, 0, 0])
|
||||
// angle_bracket_20_20();
|
||||
import("../fixings/angle_bracket_20_20.stl");
|
||||
}
|
||||
}
|
||||
}
|
||||
// translate([0, 0, L_LEG - D_BEAM_SKELETON / 2]) rotate([90, 0, 0]) skeleton_beam(R_EXTERNAL[1]);
|
||||
*/
|
||||
// translate([0, 0, L_LEG + R_BASE_PLATE[2] + T_GASKET_RUBBER - D_BEAM_SKELETON / 2]) rotate([90, 0, 0]) skeleton_beam(R_EXTERNAL[1]);
|
||||
// Z
|
||||
for (index_beam_on_x = [0 : 1 : 1]) {
|
||||
for (index_beam_on_y = [0 : 1 : 1]) {
|
||||
mirror([index_beam_on_x, 0, 0]) mirror([0, index_beam_on_y, 0]) {
|
||||
// Beams
|
||||
// Main chamber section
|
||||
translate([R_SKELETON_BEAM_CENTRES[0] / 2, R_SKELETON_BEAM_CENTRES[1] / 2, L_LEG + D_BEAM_SKELETON + length_beam_on_z / 2])
|
||||
translate([R_SKELETON_BEAM_CENTRES[0] / 2, R_SKELETON_BEAM_CENTRES[1] / 2, L_LEG + R_BASE_PLATE[2] + T_GASKET_RUBBER + D_BEAM_SKELETON + length_beam_on_z / 2])
|
||||
// skeleton_beam(length_beam_on_z);
|
||||
color("silver") import("./skeleton_beam_for_shell_on_z.stl");
|
||||
/*
|
||||
// Chamber legs
|
||||
translate([R_SKELETON_BEAM_CENTRES[0] / 2, R_SKELETON_BEAM_CENTRES[1] / 2, L_LEG / 2])
|
||||
translate([R_SKELETON_BEAM_CENTRES[0] / 2, R_SKELETON_BEAM_CENTRES[1] / 2, L_LEG + R_BASE_PLATE[2] + T_GASKET_RUBBER / 2])
|
||||
// skeleton_beam(length_beam_on_z);
|
||||
color("silver") import("./skeleton_beam_for_shell_leg.stl");
|
||||
// Joints
|
||||
// Base
|
||||
translate([R_INTERNAL[0] / 2, R_SKELETON_BEAM_CENTRES[1] / 2, L_LEG])
|
||||
translate([R_INTERNAL[0] / 2, R_SKELETON_BEAM_CENTRES[1] / 2, L_LEG + R_BASE_PLATE[2] + T_GASKET_RUBBER])
|
||||
rotate([180, 0, 180])
|
||||
// angle_bracket_20_20();
|
||||
import("../fixings/angle_bracket_20_20.stl");
|
||||
translate([R_SKELETON_BEAM_CENTRES[0] / 2, R_INTERNAL[1] / 2, L_LEG])
|
||||
translate([R_SKELETON_BEAM_CENTRES[0] / 2, R_INTERNAL[1] / 2, L_LEG + R_BASE_PLATE[2] + T_GASKET_RUBBER])
|
||||
rotate([180, 0, -90])
|
||||
// angle_bracket_20_20();
|
||||
import("../fixings/angle_bracket_20_20.stl");
|
||||
*/
|
||||
// Top - inline
|
||||
/*
|
||||
translate([R_EXTERNAL[0] / 2, R_SKELETON_BEAM_CENTRES[1] / 2, R_EXTERNAL[2] - D_BEAM_SKELETON / 2 + L_LEG])
|
||||
translate([R_EXTERNAL[0] / 2, R_SKELETON_BEAM_CENTRES[1] / 2, R_EXTERNAL[2] - D_BEAM_SKELETON / 2 + L_LEG + R_BASE_PLATE[2] + T_GASKET_RUBBER])
|
||||
rotate([-90, 0, 0]) rotate([0, 90, 0])
|
||||
// mitre_bracket();
|
||||
import("../fixings/mitre_bracket.stl");
|
||||
translate([R_SKELETON_BEAM_CENTRES[0] / 2, R_EXTERNAL[1] / 2, R_EXTERNAL[2] - D_BEAM_SKELETON / 2 + L_LEG])
|
||||
translate([R_SKELETON_BEAM_CENTRES[0] / 2, R_EXTERNAL[1] / 2, R_EXTERNAL[2] - D_BEAM_SKELETON / 2 + L_LEG + R_BASE_PLATE[2] + T_GASKET_RUBBER])
|
||||
rotate([-90, 90, 0])
|
||||
// mitre_bracket();
|
||||
import("../fixings/mitre_bracket.stl");
|
||||
@@ -114,6 +119,7 @@ module glovebox_shell(angle_door_from_closed) {
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
// Support beam legs
|
||||
L_support_leg = L_LEG - D_BEAM_SKELETON;
|
||||
for (index_beam_on_x = [0 : 1 : COUNT_BASE_SUPPORT_BEAMS_ON_Y - 1]) {
|
||||
@@ -137,16 +143,21 @@ module glovebox_shell(angle_door_from_closed) {
|
||||
color("silver") import("../fixings/angle_bracket_20_20.stl");
|
||||
}
|
||||
}
|
||||
*/
|
||||
// Base gasket
|
||||
color("black") translate([0, 0, L_LEG + R_BASE_PLATE[2] + T_GASKET_RUBBER / 2]) import("../glovebox_base/base_gasket.stl");
|
||||
// Base plate
|
||||
translate([0, 0, L_LEG + R_BASE_PLATE[2] / 2]) base_plate();
|
||||
// Rear panel
|
||||
translate([0, R_SKELETON_BEAM_CENTRES[1] / 2, L_LEG + R_EXTERNAL[2] / 2]) glovebox_rear_panel();
|
||||
translate([0, R_SKELETON_BEAM_CENTRES[1] / 2, L_LEG + R_BASE_PLATE[2] + T_GASKET_RUBBER + R_EXTERNAL[2] / 2]) glovebox_rear_panel();
|
||||
// Door
|
||||
translate([0, -R_EXTERNAL[1] / 2 - T_DOOR, L_LEG + R_EXTERNAL[2] - T_DOOR]) rotate([90 - angle_door_from_closed, 0, 0]) glovebox_door();
|
||||
translate([0, -R_EXTERNAL[1] / 2 - T_DOOR, L_LEG + R_BASE_PLATE[2] + T_GASKET_RUBBER + R_EXTERNAL[2] - T_DOOR]) rotate([90 - angle_door_from_closed, 0, 0]) glovebox_door();
|
||||
// Hinges
|
||||
for (index_hinge = [0 : 1 : COUNT_HINGES - 1]) {
|
||||
translate([
|
||||
-R_INTERNAL[0] / 2 + (R_INTERNAL[0]) / (COUNT_HINGES + 1) * (index_hinge + 1)
|
||||
, -R_EXTERNAL[1] / 2
|
||||
, L_LEG + R_EXTERNAL[2]
|
||||
, L_LEG + R_BASE_PLATE[2] + T_GASKET_RUBBER + R_EXTERNAL[2]
|
||||
]) {
|
||||
translate([0, D_BEAM_SKELETON / 2 - OFFSET_HINGE_HOLE_CENTRES_Y / 2, 0]) door_hinge(90 + angle_door_from_closed);
|
||||
|
||||
@@ -175,12 +186,13 @@ module glovebox_shell(angle_door_from_closed) {
|
||||
}
|
||||
// Latches
|
||||
for (index_latch = [0 : 1 : 1]) {
|
||||
/*
|
||||
// Bottom
|
||||
mirror([index_latch, 0, 0])
|
||||
mirror([index_latch, 0, 0]) {
|
||||
translate([
|
||||
R_EXTERNAL[0] / 2 - OFFSET_LATCH_FROM_SIDE
|
||||
, -R_EXTERNAL[1] / 2
|
||||
, L_LEG
|
||||
, L_LEG + R_BASE_PLATE[2] + T_GASKET_RUBBER
|
||||
]) {
|
||||
// Plate
|
||||
translate([0, R_DOOR_LATCH_SUPPORT_PLATE[1] / 2, -R_DOOR_LATCH_SUPPORT_PLATE[2] / 2]) difference() {
|
||||
@@ -226,12 +238,22 @@ module glovebox_shell(angle_door_from_closed) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
// Sides
|
||||
mirror([index_latch, 0, 0])
|
||||
mirror([index_latch, 0, 0]) {
|
||||
translate([
|
||||
R_EXTERNAL[0] / 2
|
||||
, -R_EXTERNAL[1] / 2
|
||||
, L_LEG + R_BASE_PLATE[2] + T_GASKET_RUBBER + D_BEAM_SKELETON / 2
|
||||
]) cube(1);
|
||||
}
|
||||
/*
|
||||
mirror([index_latch, 0, 0]) {
|
||||
translate([
|
||||
R_EXTERNAL[0] / 2 + R_DOOR_LATCH_SUPPORT_PLATE[2] / 2
|
||||
, -R_EXTERNAL[1] / 2 + R_DOOR_LATCH_SUPPORT_PLATE[1] / 2
|
||||
, L_LEG + R_EXTERNAL[2] - OFFSET_LATCH_FROM_TOP
|
||||
, L_LEG + R_BASE_PLATE[2] + T_GASKET_RUBBER + R_EXTERNAL[2] - OFFSET_LATCH_FROM_TOP
|
||||
]) {
|
||||
rotate([0, 90, 0]) difference() {
|
||||
cube(R_DOOR_LATCH_SUPPORT_PLATE, center = true);
|
||||
@@ -283,6 +305,8 @@ module glovebox_shell(angle_door_from_closed) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
// Shopping
|
||||
|
||||
Reference in New Issue
Block a user