Fix Brio Bridge track alignment
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -1,8 +1,10 @@
|
||||
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||
include <BOSL2/std.scad>
|
||||
|
||||
track_tolerance = 2; // Additional space to the tracks' side to allow for better fit
|
||||
|
||||
/* Brio variables, this file copies all Brio information rather than importing them */
|
||||
track_width = 40;
|
||||
track_width = 40 + track_tolerance;
|
||||
track_height = 12;
|
||||
track_well_depth = 2.9;
|
||||
track_well_width_top = 6.75;
|
||||
@@ -32,21 +34,18 @@ tr_co_w = 0.75 * (track_well_spacing-track_well_width_top);
|
||||
cc = 0.001;
|
||||
switch_cut_ext = 1;
|
||||
|
||||
track_tolerance = 2; // Total space to the tracks' side to allow for better fit
|
||||
|
||||
bridge_height = 61; // Height below the track
|
||||
bridge_length = 144;
|
||||
bridge_inner_width = track_width + track_tolerance; // Width between the side supports
|
||||
|
||||
side_width = 6;
|
||||
total_width = bridge_inner_width + 2 * side_width;
|
||||
total_width = track_width + 2 * side_width;
|
||||
|
||||
track_support_height = 3.5; // Thickness of the plank below the track
|
||||
track_support_overhang = 6;
|
||||
track_support_width = bridge_inner_width + side_width;
|
||||
track_support_width = track_width + side_width;
|
||||
|
||||
tunnel_rounding = 10;
|
||||
tunnel_width = track_width + track_tolerance; // Double: 2 * track_width + track_tolerance + 6
|
||||
tunnel_width = track_width; // Double: 2 * track_width - track_tolerance + 6
|
||||
tunnel_height = bridge_height + 3;
|
||||
|
||||
$fn=150;
|
||||
@@ -87,12 +86,13 @@ module track(length = 144,
|
||||
// Track shape blueprint
|
||||
module track_blueprint(grooves = true, both_sides = false, part_chamfers = true) {
|
||||
difference() {
|
||||
square([bridge_inner_width, track_height]);
|
||||
square([track_width, track_height]);
|
||||
|
||||
// Corner champers
|
||||
if (part_chamfers) {
|
||||
part_chamfers();
|
||||
}
|
||||
|
||||
// Rail grooves
|
||||
if (grooves)
|
||||
if (both_sides) grooves(true);
|
||||
@@ -171,7 +171,7 @@ module track_nest(radius = track_nest_radius,
|
||||
translate([neck_l-cc, 0, 0])
|
||||
rotate([0, 0, 180]) {
|
||||
rotate_extrude(angle = 360) {
|
||||
#polygon([[0, -cc],
|
||||
polygon([[0, -cc],
|
||||
[radius + track_chamfer/2, -cc],
|
||||
[radius, track_chamfer/2],
|
||||
[radius, track_height - track_chamfer/2],
|
||||
@@ -195,7 +195,7 @@ module side() {
|
||||
|
||||
difference() {
|
||||
group() {
|
||||
translate([-bridge_length/2,-bridge_inner_width/2,bridge_height]) {
|
||||
translate([-bridge_length/2,-track_width/2,bridge_height]) {
|
||||
track(length = bridge_length,
|
||||
end1 = "nest",
|
||||
end2 = "plug",
|
||||
@@ -204,12 +204,12 @@ difference() {
|
||||
both_sides = false);
|
||||
|
||||
// Plank below the track to support bridges on both sides
|
||||
translate([bridge_length/2,bridge_inner_width/2,-track_support_height/2])
|
||||
translate([bridge_length/2,track_width/2,-track_support_height/2])
|
||||
cuboid([bridge_length+2*track_support_overhang,track_support_width,track_support_height], chamfer=track_chamfer/sqrt(2));
|
||||
}
|
||||
|
||||
fwd(bridge_inner_width/2) side();
|
||||
rotate([0,0,180]) fwd(bridge_inner_width/2) side();
|
||||
fwd(track_width/2) side();
|
||||
rotate([0,0,180]) fwd(track_width/2) side();
|
||||
}
|
||||
|
||||
// Tunnel
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user