Compare commits

...
2 Commits
Author SHA1 Message Date
Stefan Thoss 17ce6095e5 Add ascending tracks 2025-03-22 20:53:29 -07:00
Stefan Thoss 43be3741b3 Fix typo 2025-03-20 22:09:07 -07:00
7 changed files with 137 additions and 1 deletions
Binary file not shown.
+62
View File
@@ -0,0 +1,62 @@
include <train_tracks_generator.scad>
/* https://github.com/BelfrySCAD/BOSL2 */
include <BOSL2/std.scad>
include <BOSL2/turtle3d.scad>
//$fn = 10;
// Equation: 216=2*19+2*r*sin(a)+115*cos(a),60.7=2*r-2*r*cos(a)+115*sin(a),a>0,a<pi/2,r>0
end_length = 19;
slope_radius = 91.2005;
slope_angle = 23.4085;
straight_length = 115;
ramp_height = 60.7;
ramp_length = 216;
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])
install_nest(nest_rotate = 0, length = 0);
// 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.
+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: 216=2*12+2*r*sin(a)+110*cos(a),60.7=2*r-2*r*cos(a)+110*sin(a),a>0,a<pi/2,r>0
end_length = 12;
slope_radius = 117.168;
slope_angle = 22.7293;
straight_length = 110;
ramp_height = 60.7;
ramp_length = 216;
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.
Binary file not shown.
+1 -1
View File
@@ -3,7 +3,7 @@ include <BOSL2/std.scad>
include <BOSL2/rounding.scad> include <BOSL2/rounding.scad>
// Outer length of the tray // Outer length of the tray
outer_length = 180z; outer_length = 180;
// Outer width of the tray // Outer width of the tray
outer_width = 80; outer_width = 80;