Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f9e0656d0f | ||
|
|
e88c0fbd8f |
Binary file not shown.
@@ -0,0 +1,38 @@
|
||||
/* https://github.com/torwanbukaj/ikea-brio-others-compatible-train-tracks-generator */
|
||||
include <train_tracks_generator.scad>
|
||||
|
||||
// track_tester();
|
||||
|
||||
// A2 Mini Straight
|
||||
*track(length = 54, end1 = "plug", end2 = "nest", cutout = false);
|
||||
|
||||
// A3 Middle Straight
|
||||
*track(length = 72, end1 = "plug", end2 = "nest", cutout = false);
|
||||
|
||||
// A1 Short Straight
|
||||
*track(length = 108, end1 = "plug", end2 = "nest", cutout = false);
|
||||
|
||||
// A Medium Straight
|
||||
*track(length = 144, end1 = "plug", end2 = "nest", cutout = false);
|
||||
|
||||
// D Long Straight
|
||||
*track(length = 216, end1 = "plug", end2 = "nest", cutout = false);
|
||||
|
||||
// E Large Curve
|
||||
*track_arc(angle = 45, radius = 182, end1 = "nest", end2 = "plug", cutout = false, both_sides = true);
|
||||
|
||||
// E1 Short Curve
|
||||
*track_arc(angle = 45, radius = 90, end1 = "nest", end2 = "plug", cutout = false, both_sides = true);
|
||||
|
||||
// H Cross
|
||||
*intersection(angle = 90, lengthA = 108, lengthB = 108, end1A = "nest", end2A = "plug", end1B = "nest", end2B = "plug", both_sides = true);
|
||||
|
||||
// H2 Criss Cross
|
||||
intersection(angle = 45, lengthA = 144, lengthB = 144, end1A = "nest", end2A = "plug", end1B = "nest", end2B = "plug", both_sides = true);
|
||||
|
||||
// L Curved Switch
|
||||
// M Curved Switch
|
||||
// O Short Curved Switch
|
||||
// PShort Curved Switch
|
||||
// O1 Short Curved Switch
|
||||
// P1 Short Curved Switch
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 55 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 53 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 76 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,43 @@
|
||||
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||
include <BOSL2/std.scad>
|
||||
include <BOSL2/rounding.scad>
|
||||
|
||||
// Outer length of the tray
|
||||
outer_length = 180z;
|
||||
|
||||
// Outer width of the tray
|
||||
outer_width = 80;
|
||||
|
||||
// Outer height of the tray
|
||||
outer_height = 40;
|
||||
|
||||
// Thickness of the walls
|
||||
wall_thickness = 3; // [2:10]
|
||||
|
||||
// Roundness of all outer corners
|
||||
outer_roundness = 3;
|
||||
|
||||
// Roundness of the long bottom inner corners
|
||||
long_bottom_roundness = 15;
|
||||
|
||||
// Roundness of all other inner corners
|
||||
corner_roundness = 3;
|
||||
|
||||
$fn = 80;
|
||||
|
||||
assert(corner_roundness >= outer_roundness, "Corner roundness must be greater than or equal outer roundness");
|
||||
|
||||
assert(long_bottom_roundness <= 0.75*outer_height, "Bottom roundness must be smaller than 75% of height");
|
||||
|
||||
assert(long_bottom_roundness < outer_width/2, "Bottom roundness must be smaller than half the width");
|
||||
|
||||
difference() {
|
||||
cuboid([outer_width,outer_length,outer_height], rounding=outer_roundness, except=TOP, anchor=CENTER);
|
||||
|
||||
group() {
|
||||
translate([0,0,outer_height/2])
|
||||
cuboid([outer_width-wall_thickness,outer_length-wall_thickness,2*(corner_roundness+wall_thickness)], rounding=corner_roundness, edges="Z");
|
||||
rotate([-90,0,0])
|
||||
rounded_prism(square([outer_width-wall_thickness,outer_height-wall_thickness]), height=outer_length-wall_thickness, joint_top=corner_roundness, joint_bot=corner_roundness, joint_sides=[corner_roundness,corner_roundness,long_bottom_roundness,long_bottom_roundness], anchor=CENTER, k=0.9, splinesteps=40);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user