Ascending track to fireplace mantel

This commit is contained in:
Stefan Thoss
2026-02-22 10:07:58 -08:00
parent a82d2484f7
commit d36e518ee8
4 changed files with 75 additions and 0 deletions
+1
View File
@@ -34,6 +34,7 @@ Model files:
* buffer-stops-v2.scad
* train_tracks_generator.scad
* turntable.scad
* ascending_fireplace.scad
## brio-tunnel-block
Binary file not shown.
+74
View File
@@ -0,0 +1,74 @@
include <train_tracks_generator.scad>
/* https://github.com/BelfrySCAD/BOSL2 */
include <BOSL2/std.scad>
include <BOSL2/turtle3d.scad>
//$fn = 10;
// Equation: 144=2*12+2*117.168*sin(a)+l*cos(a),21=2*117.168-2*117.168*cos(a)+l*sin(a),a>0,a<pi/2,l>0
end_length = 12; // Same as normal ascending track
slope_radius = 117.168; // Same as normal ascending track
slope_angle = 12.5681; // Calculated based on above equation
straight_length = 70.7028; // Calculated based on above equation
ramp_height = 21; // Difference between 3 Brio bridges tall and fireplace
ramp_length = 144; // Length of an A piece
module tall_nest() {
translate([0, track_width/2, -track_height/2])
scale([1,1,2])
track_nest();
translate([0, track_width/2, track_height/2 - cc])
rotate([0, 0, 45])
cube([track_nest_neck_width,
track_nest_neck_width,
track_height + 2*cc],
center = true);
}
turtle_cmds = ["move", end_length,
"arcleft", slope_radius, slope_angle,
"move", straight_length,
"arcright", slope_radius, slope_angle,
"move", end_length];
path = turtle(turtle_cmds);
difference() {
path_extrude(path)
track_blueprint(grooves = true, part_chamfers = true, both_sides = true);
// Add nest
translate([0, track_height, -track_width])
rotate([90, 0, 0])
tall_nest();
// Corner chamfer start
rotate([-90, 0, 0])
for (y = [0, track_width]) {
translate([0, y, track_height/2])
rotate([0, 0, 45])
cube([track_chamfer,
track_chamfer,
track_height],
center = true);
}
// Corner chamfer end
translate([0, ramp_height, 0])
rotate([-90, 0, 0])
for (y = [ 0, track_width]) {
translate([ramp_length, y, track_height/2])
rotate([0, 0, 45])
cube([track_chamfer,
track_chamfer,
track_height],
center = true);
}
}
// Add plug
translate([ramp_length, ramp_height+track_height, -track_width/2])
rotate([90, 0, 0])
track_plug();
Binary file not shown.