diff --git a/README.md b/README.md index 70d591f..9f765b4 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ The models come with ## brio-tracks ![buffer-stops-v2.png](brio-tracks/buffer-stops-v2.png) +![turntable.png](brio-tracks/turntable.png) Documentation: @@ -24,6 +25,7 @@ Model files: * buffer-stops-v1.scad * buffer-stops-v2.scad * train_tracks_generator.scad +* turntable.scad ## brio-tunnel-block diff --git a/brio-tracks/turntable.3mf b/brio-tracks/turntable.3mf new file mode 100644 index 0000000..347bc17 Binary files /dev/null and b/brio-tracks/turntable.3mf differ diff --git a/brio-tracks/turntable.png b/brio-tracks/turntable.png new file mode 100644 index 0000000..74d4dba Binary files /dev/null and b/brio-tracks/turntable.png differ diff --git a/brio-tracks/turntable.scad b/brio-tracks/turntable.scad new file mode 100644 index 0000000..6f61249 --- /dev/null +++ b/brio-tracks/turntable.scad @@ -0,0 +1,105 @@ +include + +/* https://github.com/BelfrySCAD/BOSL2 */ +include + +module turntable_4way(turntable_width = 144, insert_width = 86, insert_height = 8, insert_tolerance_width = 0.8, insert_tolerance_height = 0.2) { // make me + difference() { + // Base + cuboid([turntable_width, turntable_width, track_height], chamfer=track_chamfer/sqrt(2), anchor=BOTTOM); + + group() { + // Hole for insert + up(track_height-insert_height-insert_tolerance_height) + cyl(h=insert_height+insert_tolerance_height, d=insert_width+insert_tolerance_width, chamfer2=-track_chamfer/sqrt(2), anchor=BOTTOM); + + // Track grooves + translate([-track_width/2,turntable_width/2,0]) + rotate([90,0,0]) + linear_extrude(turntable_width) + grooves(both_sides=false); + rotate([0,0,90]) + translate([-track_width/2,turntable_width/2,0]) + rotate([90,0,0]) + linear_extrude(turntable_width) + grooves(both_sides=false); + + // Nests + left(turntable_width/2) track_nest(); + rotate([0,0,90]) left(turntable_width/2) track_nest(); + } + } + + // Plugs + right(turntable_width/2-track_plug_neck_length) track_plug(neck_l=2*track_plug_neck_length); + rotate([0,0,90]) right(turntable_width/2-track_plug_neck_length) track_plug(neck_l=2*track_plug_neck_length); +} + +module turntable_8way(turntable_width = 144, insert_width = 86, insert_height = 8, insert_tolerance_width = 0.8, insert_tolerance_height = 0.2) { // make me + difference() { + // Base + regular_prism(8, id=turntable_width, h=track_height, chamfer=track_chamfer/sqrt(2), realign=true, anchor=BOTTOM); + + group() { + // Hole for insert + up(track_height-insert_height-insert_tolerance_height) + cyl(h=insert_height+insert_tolerance_height, d=insert_width+insert_tolerance_width, chamfer2=-track_chamfer/sqrt(2), anchor=BOTTOM); + + // Track grooves + translate([-track_width/2,turntable_width/2,0]) + rotate([90,0,0]) + linear_extrude(turntable_width) + grooves(both_sides=false); + rotate([0,0,45]) + translate([-track_width/2,turntable_width/2,0]) + rotate([90,0,0]) + linear_extrude(turntable_width) + grooves(both_sides=false); + rotate([0,0,90]) + translate([-track_width/2,turntable_width/2,0]) + rotate([90,0,0]) + linear_extrude(turntable_width) + grooves(both_sides=false); + rotate([0,0,135]) + translate([-track_width/2,turntable_width/2,0]) + rotate([90,0,0]) + linear_extrude(turntable_width) + grooves(both_sides=false); + + // Nests + left(turntable_width/2) track_nest(); + rotate([0,0,45]) left(turntable_width/2) track_nest(); + rotate([0,0,90]) left(turntable_width/2) track_nest(); + rotate([0,0,135]) left(turntable_width/2) track_nest(); + } + } + + // Plugs + right(turntable_width/2-track_plug_neck_length) track_plug(neck_l=2*track_plug_neck_length); + rotate([0,0,45]) right(turntable_width/2-track_plug_neck_length) track_plug(neck_l=2*track_plug_neck_length); + rotate([0,0,90]) right(turntable_width/2-track_plug_neck_length) track_plug(neck_l=2*track_plug_neck_length); + rotate([0,0,135]) right(turntable_width/2-track_plug_neck_length) track_plug(neck_l=2*track_plug_neck_length); +} + +module turntable_insert(insert_width = 86, insert_height = 8) { // make me + difference() { + // Insert + cyl(h=insert_height, d=insert_width, chamfer=track_chamfer/sqrt(2), anchor=BOTTOM); + + // Track grooves + translate([-track_width/2,insert_width/2,insert_height-track_height]) + rotate([90,0,0]) + linear_extrude(insert_width) + grooves(both_sides=false); + } + + // Handle + left(33) + cyl(h=track_height+insert_height, d=8, chamfer2=track_chamfer/sqrt(2), anchor=BOTTOM); +} + +distribute(sizes=[160,90,160]) { + turntable_4way(); + turntable_insert(); + turntable_8way(); +} diff --git a/brio-tracks/turntable.stl b/brio-tracks/turntable.stl new file mode 100644 index 0000000..3ef6ddf Binary files /dev/null and b/brio-tracks/turntable.stl differ