Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
442f846690 | ||
|
|
6cb9540d51 | ||
|
|
4b55efc8e2 | ||
|
|
05e5bca54d | ||
|
|
d801554b7c | ||
|
|
e2e7f075ea | ||
|
|
ee1decf1cb | ||
|
|
84f4e1221b | ||
|
|
e5b6369477 | ||
|
|
f4a7dcc83a | ||
|
|
d36e518ee8 | ||
|
|
a82d2484f7 | ||
|
|
76fb9d0afe | ||
|
|
8199454d4a | ||
|
|
1493137959 | ||
|
|
3c7df0e8db | ||
|
|
cd6e3d3118 | ||
|
|
c9f613a5f8 | ||
|
|
d73e35068e | ||
|
|
7f1f8a17d5 | ||
|
|
30b9bb327e | ||
|
|
d7ae17c191 | ||
|
|
a5c49f45ad | ||
|
|
bd3f87db7d | ||
|
|
2365bb4595 | ||
|
|
927ea506fd | ||
|
|
23aae4fd59 | ||
|
|
320239cab2 | ||
|
|
c01ea213f5 | ||
|
|
1995f68c5c | ||
|
|
1062b2efa3 | ||
|
|
6a081d4d0f | ||
|
|
cfb49eafe3 | ||
|
|
b84616487f | ||
|
|
323fead5e0 | ||
|
|
31183d534b | ||
|
|
7ef00c5f67 | ||
|
|
321ff6456e | ||
|
|
be2a25175b | ||
|
|
b732cde082 | ||
|
|
b3dd02b66e | ||
|
|
69adc43fd2 | ||
|
|
aac1d2cfc9 | ||
|
|
f4e34d897b | ||
|
|
17ce6095e5 | ||
|
|
43be3741b3 | ||
|
|
562d0f4367 | ||
|
|
3833e26abf | ||
|
|
a0d5f837e0 | ||
|
|
4b2a88f252 | ||
|
|
6c34a098b7 | ||
|
|
28b42bc524 | ||
|
|
e1fc201368 |
@@ -0,0 +1,2 @@
|
|||||||
|
lovevery-coin/*.zip
|
||||||
|
.vscode/
|
||||||
@@ -8,3 +8,339 @@ The models come with
|
|||||||
* a `.stl` file with the exported model,
|
* a `.stl` file with the exported model,
|
||||||
* a `.png` file with a preview, and sometimes
|
* a `.png` file with a preview, and sometimes
|
||||||
* a `.3mf` file with a Bambu Lab printer profile.
|
* a `.3mf` file with a Bambu Lab printer profile.
|
||||||
|
|
||||||
|
## brio-bridge
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* brio-bridge.scad
|
||||||
|
|
||||||
|
## brio-tracks
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
Documentation:
|
||||||
|
|
||||||
|
* [README.md](brio-tracks/README.md)
|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* ascending_n_v1.scad
|
||||||
|
* ascending_n_v2.scad
|
||||||
|
* buffer-stops-v1.scad
|
||||||
|
* buffer-stops-v2.scad
|
||||||
|
* train_tracks_generator.scad
|
||||||
|
* turntable.scad
|
||||||
|
* ascending_fireplace.scad
|
||||||
|
* brio_tunnel.scad
|
||||||
|
* brio_tunnel_curve.scad
|
||||||
|
|
||||||
|
## brio-tunnel-block
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* brio-tunnel-block.scad
|
||||||
|
* brio-tunnel-block-striped.scad
|
||||||
|
|
||||||
|
## c9-lights-roof-clip
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* c9-lights-roof-clip.scad
|
||||||
|
|
||||||
|
## corner-door-stopper
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* corner-door-stopper.scad
|
||||||
|
|
||||||
|
## cube-with-square-hole
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* cube-with-square-hole.scad
|
||||||
|
|
||||||
|
## cup-letter-wrap
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* cup-letter-wrap.scad
|
||||||
|
|
||||||
|
## cutlery-organizer
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* cutlery-organizer.scad
|
||||||
|
|
||||||
|
## duct-coupler
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* duct-coupler.scad
|
||||||
|
|
||||||
|
## exhaust-vent-wall-plate
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* exhaust-vent-wall-plate.scad
|
||||||
|
|
||||||
|
## fenix-e35r-wall-clip
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* fenix-e35r-wall-clip.scad
|
||||||
|
|
||||||
|
## fireplace-holder
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* fireplace-holder.scad
|
||||||
|
|
||||||
|
## fluke-lead-holder-hsw
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* fluke-lead-holder-hsw.scad
|
||||||
|
|
||||||
|
## hex-nespresso-insert
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* hex-nespresso-insert-variant.scad
|
||||||
|
* hex-nespresso-insert-variant-2.scad
|
||||||
|
* hex-nespresso-insert.scad
|
||||||
|
|
||||||
|
## home-assistant-voice-wall-mount
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* home-assistant-voice-wall-mount.scad
|
||||||
|
|
||||||
|
## korg-piano-volume-knob
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* korg-piano-volume-knob.scad
|
||||||
|
|
||||||
|
## lovevery-coin
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* lovevery-coin-one-sided.scad
|
||||||
|
* lovevery-coin-raised.scad
|
||||||
|
* lovevery-coin-stencil.scad
|
||||||
|
|
||||||
|
## lovevery-coin-multicolor
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* lovevery-coin-multicolor.scad
|
||||||
|
|
||||||
|
## m5-atom-echo-hsw-mount
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* m5-atom-echo-hsw-mount.scad
|
||||||
|
|
||||||
|
## map-wall-clamp
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* map-wall-clamp.scad
|
||||||
|
|
||||||
|
## nvidia-server-gpu-fan-shroud
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* nvidia-a2-fan-shroud.scad
|
||||||
|
* nvidia-t4-fan-shroud.scad
|
||||||
|
|
||||||
|
## oil-bottle-coaster
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* oil-bottle-coaster.scad
|
||||||
|
|
||||||
|
## phone-holder-monitor
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* phone-holder-monitor.scad
|
||||||
|
|
||||||
|
## pvc-drain-end
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* pvc-drain-end.scad
|
||||||
|
|
||||||
|
## rafter-drip-ledge
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* rafter-drip-ledge.scad
|
||||||
|
|
||||||
|
## ring-sizer
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* ring-sizer.scad
|
||||||
|
|
||||||
|
## server-air-shield
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* server-air-shield.scad
|
||||||
|
|
||||||
|
## shoe-shelf-wall-mount
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* shoe-shelf-wall-mount.scad
|
||||||
|
|
||||||
|
## siding-bird-feeder-hanger
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* siding-bird-feeder-hanger.scad
|
||||||
|
|
||||||
|
## siding-light-mount
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* siding-light-mount.scad
|
||||||
|
|
||||||
|
## simple-figurine
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* simple-figurine.scad
|
||||||
|
|
||||||
|
## simple-rounded-s-hook
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* simple-rounded-s-hook.scad
|
||||||
|
|
||||||
|
## sink-drain-adapter
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* sink-drain-adapter.scad
|
||||||
|
|
||||||
|
## slim-rpi-wall-holder
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* slim-rpi-wall-holder.scad
|
||||||
|
|
||||||
|
## spice-rack-organizer
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* spice-rack-organizer.scad
|
||||||
|
|
||||||
|
## thirdreality-zigbee-sensor-mount
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* thirdreality-zigbee-sensor-mount.scad
|
||||||
|
|
||||||
|
## toy-cubes
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* toy-cubes.scad
|
||||||
|
|
||||||
|
## tree-stand-floor-protector
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Model files:
|
||||||
|
|
||||||
|
* tree-stand-floor-protector.scad
|
||||||
|
|||||||
|
After Width: | Height: | Size: 21 KiB |
@@ -0,0 +1,223 @@
|
|||||||
|
/* 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_tolerance;
|
||||||
|
track_height = 12;
|
||||||
|
track_well_depth = 2.9;
|
||||||
|
track_well_width_top = 6.75;
|
||||||
|
track_well_width_bottom = 4.75;
|
||||||
|
track_well_spacing = 25.7;
|
||||||
|
track_chamfer = 1.5;
|
||||||
|
brio_track_plug_radius = 6; // 6.25
|
||||||
|
brio_track_plug_radius_ext = 6.25; // 6.5 for a dog-bone with springy plug
|
||||||
|
brio_track_plug_neck_width = 6; // 6.1
|
||||||
|
brio_track_plug_neck_length = 18-brio_track_plug_radius; // 12
|
||||||
|
brio_track_plug_txt = "B";
|
||||||
|
brio_track_nest_radius = 6.5; // 6.4
|
||||||
|
brio_track_nest_neck_width = 7.3; // 6.3
|
||||||
|
brio_track_nest_neck_length = 18-brio_track_nest_radius; // 12
|
||||||
|
brio_track_nest_txt = "B";
|
||||||
|
track_plug_radius = brio_track_plug_radius;
|
||||||
|
track_plug_radius_ext = brio_track_plug_radius_ext;
|
||||||
|
track_plug_neck_width = brio_track_plug_neck_width;
|
||||||
|
track_plug_neck_length = brio_track_plug_neck_length;
|
||||||
|
track_plug_txt = brio_track_plug_txt;
|
||||||
|
track_nest_radius = brio_track_nest_radius;
|
||||||
|
track_nest_neck_width = brio_track_nest_neck_width;
|
||||||
|
track_nest_neck_length = brio_track_nest_neck_length;
|
||||||
|
track_nest_txt = brio_track_nest_txt;
|
||||||
|
tr_wl_w_stick_out = (track_well_width_top-track_well_width_bottom)/2;
|
||||||
|
tr_co_w = 0.75 * (track_well_spacing-track_well_width_top);
|
||||||
|
cc = 0.001;
|
||||||
|
switch_cut_ext = 1;
|
||||||
|
|
||||||
|
bridge_height = 61; // Height below the track
|
||||||
|
bridge_length = 144;
|
||||||
|
|
||||||
|
side_width = 6;
|
||||||
|
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 = track_width + side_width;
|
||||||
|
|
||||||
|
tunnel_rounding = 10;
|
||||||
|
tunnel_width = track_width; // Double: 2 * track_width - track_tolerance + 6
|
||||||
|
tunnel_height = bridge_height + 3;
|
||||||
|
|
||||||
|
$fn=150;
|
||||||
|
|
||||||
|
// STRAIGHT TRACK GENERATOR MODULE
|
||||||
|
module track(length = 144,
|
||||||
|
end1 = "nest",
|
||||||
|
end2 = "plug",
|
||||||
|
part_chamfers = true,
|
||||||
|
grooves = true,
|
||||||
|
both_sides = false) {
|
||||||
|
b = track_nest_neck_length + track_nest_radius;
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
rotate([90, 0, 90])
|
||||||
|
linear_extrude(length)
|
||||||
|
track_blueprint(grooves = grooves,
|
||||||
|
part_chamfers = part_chamfers,
|
||||||
|
both_sides = both_sides);
|
||||||
|
|
||||||
|
if (end1 == "nest") {
|
||||||
|
install_nest(nest_rotate = 0, length = 0);
|
||||||
|
}
|
||||||
|
if (end2 == "nest") {
|
||||||
|
install_nest(nest_rotate = 180, length = length);
|
||||||
|
}
|
||||||
|
} //main difference
|
||||||
|
|
||||||
|
// Generating plugs
|
||||||
|
if (end1 == "plug") {
|
||||||
|
install_plug(180, 0);
|
||||||
|
}
|
||||||
|
if (end2 == "plug") {
|
||||||
|
install_plug(0, length);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Track shape blueprint
|
||||||
|
module track_blueprint(grooves = true, both_sides = false, part_chamfers = true) {
|
||||||
|
difference() {
|
||||||
|
square([track_width, track_height]);
|
||||||
|
|
||||||
|
// Corner champers
|
||||||
|
if (part_chamfers) {
|
||||||
|
part_chamfers();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Rail grooves
|
||||||
|
if (grooves)
|
||||||
|
if (both_sides) grooves(true);
|
||||||
|
else grooves(false);
|
||||||
|
} //difference
|
||||||
|
}
|
||||||
|
|
||||||
|
// Helping module used for generation of track grooves
|
||||||
|
module grooves(both_sides = false) {
|
||||||
|
for (x = [-track_well_spacing/2, track_well_spacing/2]) {
|
||||||
|
translate([track_width/2+x, track_height-track_well_depth+cc, 0])
|
||||||
|
rail_well();
|
||||||
|
if (both_sides) {
|
||||||
|
translate([track_width/2+x, track_well_depth-cc, 0])
|
||||||
|
rotate([0, 0, 180]) rail_well();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Helping function which defines a grove shape
|
||||||
|
module rail_well() {
|
||||||
|
translate([-track_well_width_bottom/2, 0, 0])
|
||||||
|
polygon([[0, 0],
|
||||||
|
[track_well_width_bottom, 0],
|
||||||
|
[track_well_width_bottom+tr_wl_w_stick_out, track_well_depth],
|
||||||
|
[-tr_wl_w_stick_out, track_well_depth]]);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Helping module for track() module - installs a plug
|
||||||
|
module install_plug(plug_rotate = 180, length = 0) {
|
||||||
|
translate([length, track_width/2, 0])
|
||||||
|
rotate([0, 0, plug_rotate])
|
||||||
|
track_plug();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Helping module for track() module - installs a nest
|
||||||
|
module install_nest(nest_rotate = 180, length = 0) {
|
||||||
|
translate([length, track_width/2, 0])
|
||||||
|
rotate([0, 0, nest_rotate])
|
||||||
|
track_nest();
|
||||||
|
translate([length, 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Module track_plug() is used by multiple other modules for generating
|
||||||
|
// a plug at a desired track ending
|
||||||
|
module track_plug(radius = track_plug_radius,
|
||||||
|
neck_w = track_plug_neck_width,
|
||||||
|
neck_l = track_plug_neck_length){
|
||||||
|
|
||||||
|
translate([neck_l, 0, 0])
|
||||||
|
rotate([0, 0, 180]) {
|
||||||
|
rotate_extrude(angle = 360) {
|
||||||
|
polygon([[0, 0],
|
||||||
|
[radius - track_chamfer/2, 0],
|
||||||
|
[radius, track_chamfer/2],
|
||||||
|
[radius, track_height - track_chamfer/2],
|
||||||
|
[radius - track_chamfer/2, track_height],
|
||||||
|
[0, track_height]]);
|
||||||
|
}
|
||||||
|
translate([0, -neck_w/2, 0])
|
||||||
|
cube([neck_l, neck_w, track_height]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Module track_nest() is used by multiple other modules for generating
|
||||||
|
// a nest at a desired track ending
|
||||||
|
module track_nest(radius = track_nest_radius,
|
||||||
|
neck_w = track_nest_neck_width,
|
||||||
|
neck_l = track_nest_neck_length) {
|
||||||
|
translate([neck_l-cc, 0, 0])
|
||||||
|
rotate([0, 0, 180]) {
|
||||||
|
rotate_extrude(angle = 360) {
|
||||||
|
polygon([[0, -cc],
|
||||||
|
[radius + track_chamfer/2, -cc],
|
||||||
|
[radius, track_chamfer/2],
|
||||||
|
[radius, track_height - track_chamfer/2],
|
||||||
|
[radius + track_chamfer/2, track_height + 2*cc],
|
||||||
|
[0, track_height + 2* cc]]);
|
||||||
|
}
|
||||||
|
translate([0, -neck_w/2, -cc])
|
||||||
|
difference() {
|
||||||
|
cube([neck_l, neck_w, track_height + 2*cc]);
|
||||||
|
translate([0, 0, 0]) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module side() {
|
||||||
|
translate([0,-side_width/2,bridge_height/2+track_height/2])
|
||||||
|
cuboid([bridge_length,side_width,bridge_height+track_height], chamfer=track_chamfer/sqrt(2), except=[TOP+BACK,TOP+LEFT,TOP+RIGHT,BACK+LEFT,BACK+RIGHT]);
|
||||||
|
}
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
group() {
|
||||||
|
translate([-bridge_length/2,-track_width/2,bridge_height]) {
|
||||||
|
track(length = bridge_length,
|
||||||
|
end1 = "nest",
|
||||||
|
end2 = "plug",
|
||||||
|
part_chamfers = false,
|
||||||
|
grooves = true,
|
||||||
|
both_sides = false);
|
||||||
|
|
||||||
|
// Plank below the track to support bridges on both sides
|
||||||
|
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(track_width/2) side();
|
||||||
|
rotate([0,0,180]) fwd(track_width/2) side();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Tunnel
|
||||||
|
group() {
|
||||||
|
// The +0.1 is a hack to fight some rendering issues in OpenSCAD
|
||||||
|
up(tunnel_height/2) rotate([90,0,0]) cuboid([tunnel_width-2*tunnel_rounding,tunnel_height,total_width + 0.1], chamfer=-track_chamfer/sqrt(2), edges="X");
|
||||||
|
up(tunnel_height/2-tunnel_rounding/2) rotate([90,0,0]) cuboid([tunnel_width,tunnel_height-tunnel_rounding,total_width + 0.1], chamfer=-track_chamfer/sqrt(2), edges="Y");
|
||||||
|
translate([tunnel_width/2-tunnel_rounding,0,tunnel_height-tunnel_rounding]) ycyl(h=total_width + 0.1, r=tunnel_rounding, chamfer=-track_chamfer/sqrt(2));
|
||||||
|
translate([-(tunnel_width/2-tunnel_rounding),0,tunnel_height-tunnel_rounding]) ycyl(h=total_width + 0.1, r=tunnel_rounding, chamfer=-track_chamfer/sqrt(2));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
SCAD=train_tracks_generator.scad
|
||||||
|
SUFFIX=.stl
|
||||||
|
|
||||||
|
# match "module foobar() { // `make` me"
|
||||||
|
TARGETS != sed -n 's/^module *\([A-Za-z0-9_-]*\)(.*) *.*make.* me.*$$/\1$(SUFFIX)/p' $(SCAD)
|
||||||
|
|
||||||
|
$(shell mkdir -p output)
|
||||||
|
|
||||||
|
all: ${TARGETS}
|
||||||
|
|
||||||
|
.SUFFIXES: ${SUFFIX}
|
||||||
|
|
||||||
|
${TARGETS}: $(SCAD)
|
||||||
|
echo 'use <$(SCAD)>;\n$*();' | openscad -m make -o output/$@ -
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
## Brio Track Generation
|
||||||
|
|
||||||
|
```shell
|
||||||
|
make
|
||||||
|
```
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
`train_tracks_generator.scad` is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International and forked from <https://github.com/torwanbukaj/ikea-brio-others-compatible-train-tracks-generator>.
|
||||||
@@ -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();
|
||||||
@@ -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();
|
||||||
@@ -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();
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
/* 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
|
|
||||||
*switch(angleR = 0, radiusR = 0, endR = "none", angleL = 45, radiusL = 182, endL = "plug", lengthS = 144, endS = "plug", endCommon = "nest", both_sides = true);
|
|
||||||
|
|
||||||
// M Curved Switch
|
|
||||||
*switch(angleR = 0, radiusR = 0, endR = "none", angleL = 45, radiusL = 182, endL = "nest", lengthS = 144, endS = "nest", endCommon = "plug", both_sides = true);
|
|
||||||
|
|
||||||
// I Double Curved Switch
|
|
||||||
*switch(angleR = 45, radiusR = 182, endR = "plug", angleL = 45, radiusL = 182, endL = "plug", lengthS = 144, endS = "plug", endCommon = "nest", both_sides = true);
|
|
||||||
|
|
||||||
// J Double Curved Switch
|
|
||||||
*switch(angleR = 45, radiusR = 182, endR = "nest", angleL = 45, radiusL = 182, endL = "nest", lengthS = 144, endS = "nest", endCommon = "plug", both_sides = true);
|
|
||||||
|
|
||||||
// O Short Curved Switch
|
|
||||||
// PShort Curved Switch
|
|
||||||
// O1 Short Curved Switch
|
|
||||||
// P1 Short Curved Switch
|
|
||||||
|
After Width: | Height: | Size: 25 KiB |
@@ -0,0 +1,171 @@
|
|||||||
|
// BRIO-compatible tunnel.
|
||||||
|
//
|
||||||
|
// A straight track whose bed is widened into a solid block, carved out by an arched
|
||||||
|
// bore, with the female/male BRIO connectors kept at the normal height: a solid
|
||||||
|
// arched profile -> subtract the bore -> subtract the rail wells and the nest ->
|
||||||
|
// add the plug. The bore floor is flush with the top of the track, so the running
|
||||||
|
// surface stays a regular BRIO straight and the 45 mm bore gives the stock 2.5 mm
|
||||||
|
// of lateral clearance on each side.
|
||||||
|
//
|
||||||
|
// Construction follows ascending_n_v2.scad: extrude a track profile, cut the nest,
|
||||||
|
// add the plug.
|
||||||
|
//
|
||||||
|
// Driving dimensions: the outer shape (width, `outer_wall` straight height, `total_height`
|
||||||
|
// crown) and one shell thickness, `ceiling`, which is applied as a parallel offset —
|
||||||
|
// the bore arc is concentric with the outer barrel and 6 mm inside it everywhere. The
|
||||||
|
// shell is therefore a true uniform 6 mm: side walls 6 mm, roof 6 mm at the crown and
|
||||||
|
// 6 mm normal to the arch all the way round.
|
||||||
|
//
|
||||||
|
// Everything on the inside follows from that. At the defaults the inner wall springs at
|
||||||
|
// z 56.5 mm (derived, not a parameter), the bore crown is at z 62 mm, headroom is 50 mm
|
||||||
|
// at the crown and 44.5 mm at the walls, and the wall->roof junction breaks 62 deg —
|
||||||
|
// a crisp inner edge like the original wooden tunnel rather than a tangent sweep.
|
||||||
|
// A deeper, rounder bore would need a shallower barrel or a thicker roof; with a
|
||||||
|
// parallel shell the two arcs can never disagree about where the curve starts.
|
||||||
|
//
|
||||||
|
// Prints upright as modelled, no supports: the roof is a self-supporting vault — at
|
||||||
|
// 0.2 mm layers each ring of the band rests on ~99% of the ring below it, and the most
|
||||||
|
// any layer bridges is ~1.3 mm where the vault closes. Loads on the roof run along the
|
||||||
|
// layers, and the walls are printed under compression, which is the strong direction
|
||||||
|
// for FDM.
|
||||||
|
//
|
||||||
|
// `portal_chamfer` breaks the portal edges all the way round except the underside:
|
||||||
|
// the bed is a mating face and its bottom corner has to stay square so the male plug
|
||||||
|
// is bonded along its whole height where it leaves the far portal.
|
||||||
|
|
||||||
|
include <train_tracks_generator.scad>
|
||||||
|
|
||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
/* [Tunnel] */
|
||||||
|
// Length of the track body: portal face to portal face, EXCLUDING the connectors.
|
||||||
|
// 216 = BRIO "D" long straight. The male plug adds 18 mm protruding from one portal
|
||||||
|
// and the female end is a cavity cut inside the body, so neither is counted here.
|
||||||
|
// Keep this at or below 238 to stay on a 256 mm bed.
|
||||||
|
length = 216; // [108:2:238]
|
||||||
|
// Overall width across the walls
|
||||||
|
outer_width = 57; // [45:1:150]
|
||||||
|
// Clear width of the bore; must exceed the 40 mm track to give clearance
|
||||||
|
inner_width = 45; // [41:0.5:140]
|
||||||
|
// Height of the crown above the build plate, 12 mm track included
|
||||||
|
total_height = 68; // [30:1:200]
|
||||||
|
// Height at which the outer wall stops being straight and the roof barrel starts
|
||||||
|
outer_wall = 60; // [13:1:190]
|
||||||
|
// Shell thickness: side walls, and roof measured normal to the arch (uniform)
|
||||||
|
ceiling = 6; // [2:0.5:20]
|
||||||
|
// Chamfer breaking the portal edges
|
||||||
|
portal_chamfer = 1; // [0:0.25:3]
|
||||||
|
|
||||||
|
/* [Hidden] */
|
||||||
|
$fn = 256; // finished part
|
||||||
|
epsilon = 0.01; // extend cutters past coplanar faces
|
||||||
|
layer_height = 0.2; // general utility/ornament print; not a Customizer param
|
||||||
|
arc_steps = 96; // facets per arch, independent of $fn
|
||||||
|
min_wall = 2; // thinnest wall or roof the Customizer ranges may produce
|
||||||
|
|
||||||
|
// ### Derived geometry — the inside is fully determined by the outside + `ceiling`
|
||||||
|
half_out = outer_width / 2;
|
||||||
|
half_in = inner_width / 2;
|
||||||
|
|
||||||
|
// Bed is flush with the top of the track, so the track stays a working straight.
|
||||||
|
floor_z = track_height;
|
||||||
|
|
||||||
|
// Outer arc through (+-half_out, outer_wall) and (0, total_height)
|
||||||
|
out_rise = total_height - outer_wall;
|
||||||
|
out_r = (half_out * half_out + out_rise * out_rise) / (2 * out_rise);
|
||||||
|
out_z = total_height - out_r; // centre height, shared by both arcs
|
||||||
|
|
||||||
|
// Bore arc: concentric, `ceiling` inside the outer one -> constant shell thickness
|
||||||
|
in_r = out_r - ceiling;
|
||||||
|
inner_crown = out_z + in_r; // == total_height - ceiling
|
||||||
|
inner_wall = out_z + sqrt(in_r * in_r - half_in * half_in);
|
||||||
|
bore_crease = 90 - asin(half_in / in_r); // wall->roof break, degrees
|
||||||
|
printed_length = length + track_plug_neck_length + track_plug_radius;
|
||||||
|
|
||||||
|
assert(inner_width > track_width, "bore must be wider than the 40 mm track");
|
||||||
|
assert(outer_width - inner_width >= 2 * min_wall, "side walls would be under min_wall thick");
|
||||||
|
assert(ceiling >= min_wall, "roof would be under min_wall thick");
|
||||||
|
assert(out_rise > 0, "total_height must be above outer_wall");
|
||||||
|
assert(out_r >= half_out, "outer arch never reaches the walls: raise the tunnel or narrow it");
|
||||||
|
assert(in_r >= half_in, "bore arc cannot reach the inner walls: thinner roof, narrower bore or taller tunnel");
|
||||||
|
assert(inner_wall > floor_z, "bore arch springs below the track bed: taller tunnel or narrower bore");
|
||||||
|
|
||||||
|
echo(str("tunnel ", length, " x ", outer_width, " x ", total_height, " mm; uniform shell ",
|
||||||
|
ceiling, " mm; bore ", inner_width, " mm wide springing at z ",
|
||||||
|
round(inner_wall * 10) / 10, " (derived), crown at z ", round(inner_crown * 10) / 10,
|
||||||
|
"; headroom ", round((inner_crown - floor_z) * 10) / 10, " mm at the crown, ",
|
||||||
|
round((inner_wall - floor_z) * 10) / 10, " mm at the walls, ",
|
||||||
|
round((inner_width - track_width) * 10) / 10, " mm across for the stock"));
|
||||||
|
echo(str("outer barrel R", round(out_r * 10) / 10, " springing at z ", outer_wall,
|
||||||
|
", bore arc R", round(in_r * 10) / 10, ", wall->roof crease ",
|
||||||
|
round(bore_crease * 10) / 10, " deg"));
|
||||||
|
echo(str("body ", length, " mm between the portals; ",
|
||||||
|
round(printed_length * 10) / 10, " mm overall including the protruding plug; ",
|
||||||
|
printed_length <= 256 ? "fits a 256 mm bed"
|
||||||
|
: "TOO LONG for a 256 mm bed"));
|
||||||
|
|
||||||
|
// Closed outline of a solid arch, in the across/up plane, centred on the track axis:
|
||||||
|
// straight walls up to where the arc takes over, circular arc over the crown, flat floor.
|
||||||
|
function arch_outline(half_w, r, z_centre, z_floor) =
|
||||||
|
let (z_wall = z_centre + sqrt(r * r - half_w * half_w),
|
||||||
|
amax = asin(half_w / r))
|
||||||
|
concat(
|
||||||
|
[[-half_w, z_floor], [-half_w, z_wall]],
|
||||||
|
[for (i = [0:arc_steps])
|
||||||
|
let (a = -amax + 2 * amax * i / arc_steps)
|
||||||
|
[r * sin(a), z_centre + r * cos(a)]],
|
||||||
|
[[half_w, z_wall], [half_w, z_floor]]
|
||||||
|
);
|
||||||
|
|
||||||
|
// Extrude an arch profile along the track axis, from x = x0 to x = x1, centred on the
|
||||||
|
// track (the generator puts the track body at y = 0 .. track_width).
|
||||||
|
module extrude_arch(profile, x0, x1) {
|
||||||
|
translate([0, track_width / 2, 0])
|
||||||
|
rotate([90, 0, 90])
|
||||||
|
translate([0, 0, x0])
|
||||||
|
linear_extrude(x1 - x0)
|
||||||
|
polygon(profile);
|
||||||
|
}
|
||||||
|
|
||||||
|
// One object for the slicer
|
||||||
|
union() {
|
||||||
|
difference() {
|
||||||
|
// Solid arched block. The outline is convex, so a hull of the three sections
|
||||||
|
// lofts them exactly: 45 degree chamfers break the edges of both portal faces.
|
||||||
|
// The inset sections keep their floor at z = 0 rather than lifting by the
|
||||||
|
// chamfer width, so the end faces stay full height: lifting it would shave the
|
||||||
|
// bottom of the bed and leave the root of the male plug standing over a void.
|
||||||
|
if (portal_chamfer > 0) {
|
||||||
|
hull() {
|
||||||
|
extrude_arch(arch_outline(half_out - portal_chamfer,
|
||||||
|
out_r - portal_chamfer, out_z, 0),
|
||||||
|
0, portal_chamfer);
|
||||||
|
extrude_arch(arch_outline(half_out, out_r, out_z, 0),
|
||||||
|
portal_chamfer, length - portal_chamfer);
|
||||||
|
extrude_arch(arch_outline(half_out - portal_chamfer,
|
||||||
|
out_r - portal_chamfer, out_z, 0),
|
||||||
|
length - portal_chamfer, length);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
extrude_arch(arch_outline(half_out, out_r, out_z, 0), 0, length);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Bore: arched vault concentric with the outer barrel, floor flush with the top
|
||||||
|
// of the track
|
||||||
|
extrude_arch(arch_outline(half_in, in_r, out_z, floor_z),
|
||||||
|
-epsilon, length + epsilon);
|
||||||
|
|
||||||
|
// Rail wells, along the whole length, so the floor is a working BRIO straight
|
||||||
|
rotate([90, 0, 90])
|
||||||
|
translate([0, 0, -epsilon])
|
||||||
|
linear_extrude(length + 2 * epsilon)
|
||||||
|
grooves(both_sides = false);
|
||||||
|
|
||||||
|
// Female connector in the near portal
|
||||||
|
install_nest(nest_rotate = 0, length = 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Male connector protruding from the far portal, below the bore floor
|
||||||
|
install_plug(0, length);
|
||||||
|
}
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
include <train_tracks_generator.scad>
|
||||||
|
|
||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
stopper_length = 34;
|
||||||
|
plug_extension = 5;
|
||||||
|
nest_top_tolerance = 0.5;
|
||||||
|
|
||||||
|
module stopper() {
|
||||||
|
rotate([90,0,0])
|
||||||
|
linear_extrude(track_width) {
|
||||||
|
group() {
|
||||||
|
translate([0,9+track_height])
|
||||||
|
rect([15,14],chamfer=[track_chamfer,track_chamfer,0,0], anchor=BOTTOM);
|
||||||
|
translate([0,7+track_height])
|
||||||
|
trapezoid(2,10,15, anchor=BOTTOM);
|
||||||
|
translate([0,4+track_height])
|
||||||
|
rect([10,3], anchor=BOTTOM);
|
||||||
|
translate([0,2+track_height])
|
||||||
|
trapezoid(2,stopper_length-track_chamfer,10, anchor=BOTTOM);
|
||||||
|
rect([stopper_length,track_height+2],chamfer=[0,0,track_chamfer,track_chamfer],rounding=[track_chamfer/2,track_chamfer/2,0,0], anchor=BOTTOM);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
translate([0,50,0]) {
|
||||||
|
stopper();
|
||||||
|
|
||||||
|
// Add plug
|
||||||
|
translate([stopper_length/2-plug_extension, -track_width/2, 0])
|
||||||
|
track_plug(neck_l = track_plug_neck_length+plug_extension);
|
||||||
|
}
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
stopper();
|
||||||
|
|
||||||
|
// Add nest
|
||||||
|
translate([stopper_length/2, -track_width/2, 0])
|
||||||
|
rotate([0,0,180])
|
||||||
|
translate([track_nest_neck_length-cc, 0, 0])
|
||||||
|
rotate([0, 0, 180]) {
|
||||||
|
rotate_extrude(angle = 360) {
|
||||||
|
polygon([[0, -cc],
|
||||||
|
[track_nest_radius + track_chamfer/2, -cc],
|
||||||
|
[track_nest_radius, track_chamfer/2],
|
||||||
|
[track_nest_radius, track_height + nest_top_tolerance - track_chamfer/2],
|
||||||
|
[track_nest_radius, track_height + nest_top_tolerance + 2*cc],
|
||||||
|
[0, track_height + nest_top_tolerance + 2* cc]]);
|
||||||
|
}
|
||||||
|
translate([0, -track_nest_neck_width/2, -cc])
|
||||||
|
difference() {
|
||||||
|
cube([track_nest_neck_length, track_nest_neck_width, track_height + nest_top_tolerance + 2*cc]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 37 KiB |
@@ -0,0 +1,54 @@
|
|||||||
|
include <train_tracks_generator.scad>
|
||||||
|
|
||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
stopper_length = 34;
|
||||||
|
plug_extension = 5;
|
||||||
|
nest_top_tolerance = 0.5;
|
||||||
|
|
||||||
|
module stopper() {
|
||||||
|
rotate([90,0,0])
|
||||||
|
linear_extrude(track_width) {
|
||||||
|
group() {
|
||||||
|
translate([0,9+track_height])
|
||||||
|
rect([15,14],chamfer=[track_chamfer,track_chamfer,0,0], anchor=BOTTOM);
|
||||||
|
translate([0,7+track_height])
|
||||||
|
trapezoid(2,10,15, anchor=BOTTOM);
|
||||||
|
translate([0,3+track_height])
|
||||||
|
rect([10,4], anchor=BOTTOM);
|
||||||
|
rect([stopper_length,track_height+3],chamfer=track_chamfer,anchor=BOTTOM);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
translate([0,50,0]) {
|
||||||
|
stopper();
|
||||||
|
|
||||||
|
// Add plug
|
||||||
|
translate([stopper_length/2-plug_extension, -track_width/2, 0])
|
||||||
|
track_plug(neck_l = track_plug_neck_length+plug_extension);
|
||||||
|
}
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
stopper();
|
||||||
|
|
||||||
|
// Add nest
|
||||||
|
translate([stopper_length/2, -track_width/2, 0])
|
||||||
|
rotate([0,0,180])
|
||||||
|
translate([track_nest_neck_length-cc, 0, 0])
|
||||||
|
rotate([0, 0, 180]) {
|
||||||
|
rotate_extrude(angle = 360) {
|
||||||
|
polygon([[0, -cc],
|
||||||
|
[track_nest_radius + track_chamfer/2, -cc],
|
||||||
|
[track_nest_radius, track_chamfer/2],
|
||||||
|
[track_nest_radius, track_height + nest_top_tolerance - track_chamfer/2],
|
||||||
|
[track_nest_radius, track_height + nest_top_tolerance + 2*cc],
|
||||||
|
[0, track_height + nest_top_tolerance + 2* cc]]);
|
||||||
|
}
|
||||||
|
translate([0, -track_nest_neck_width/2, -cc])
|
||||||
|
difference() {
|
||||||
|
cube([track_nest_neck_length, track_nest_neck_width, track_height + nest_top_tolerance + 2*cc]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 73 KiB |
@@ -0,0 +1,105 @@
|
|||||||
|
include <train_tracks_generator.scad>
|
||||||
|
|
||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
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();
|
||||||
|
}
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
// Zebra version of brio-tunnel-block.scad: the block is cut into 8 bands of 5mm
|
||||||
|
// across its 40mm depth (the dimension that is 40mm tall when the block lies on
|
||||||
|
// its side) and the bands alternate black/white, so the stripes run over the arch.
|
||||||
|
// Geometry, chamfering and rounding are identical to brio-tunnel-block.scad; only
|
||||||
|
// the coloring/slicing is added.
|
||||||
|
// Colors show in the preview (F5) and in a 3MF export; a plain STL export drops them.
|
||||||
|
|
||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
cube_h = 80;
|
||||||
|
cube_w = 80;
|
||||||
|
cube_d = 40;
|
||||||
|
|
||||||
|
rounding = 2;
|
||||||
|
|
||||||
|
oval_cutout_h = 15;
|
||||||
|
|
||||||
|
rect_cutout_w = 45;
|
||||||
|
rect_cutout_h = 65-oval_cutout_h;
|
||||||
|
|
||||||
|
// Zebra striping: stripe_n bands of 5mm across the 40mm depth (cube_d),
|
||||||
|
// alternating between the two stripe colors.
|
||||||
|
stripe_n = 8;
|
||||||
|
stripe_w = cube_d / stripe_n; // 5mm
|
||||||
|
stripe_colors = ["black", "white"];
|
||||||
|
|
||||||
|
$fn=150;
|
||||||
|
|
||||||
|
// The tunnel block, exactly as in brio-tunnel-block.scad
|
||||||
|
// (all chamfering and rounding unchanged).
|
||||||
|
module tunnelblock() {
|
||||||
|
difference() {
|
||||||
|
cuboid([cube_w,cube_d,cube_h], rounding=rounding, anchor=[0,0,-1]);
|
||||||
|
|
||||||
|
group() {
|
||||||
|
rotate([90,0,0])
|
||||||
|
difference() {
|
||||||
|
cuboid([rect_cutout_w,rect_cutout_h,cube_d], chamfer=-rounding, anchor=[0,-1,0]);
|
||||||
|
translate([0,rect_cutout_h,0])
|
||||||
|
cuboid([2*rect_cutout_w,rect_cutout_h,cube_d], anchor=[0,-1,0]);
|
||||||
|
}
|
||||||
|
translate([0,0,rect_cutout_h])
|
||||||
|
resize([0,0,2*oval_cutout_h])
|
||||||
|
rotate([90,0,0])
|
||||||
|
cyl(h=cube_d, d=rect_cutout_w, chamfer=-rounding);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Everything of the block that is *not* between y=y0 and y=y1, as a single
|
||||||
|
// solid. Cutting the block with one difference() of this union (instead of an
|
||||||
|
// intersection() with a slab) is what keeps the rounded/chamfered edges at
|
||||||
|
// y=+/-cube_d/2 intact.
|
||||||
|
module outside(y0, y1) {
|
||||||
|
big = 2 * cube_h; // bigger than the block in every direction
|
||||||
|
union() {
|
||||||
|
translate([0, (y0-big)/2, cube_h/2])
|
||||||
|
cube([cube_w + 2*big, big + y0, cube_h + 2*big], center=true);
|
||||||
|
translate([0, (y1+big)/2, cube_h/2])
|
||||||
|
cube([cube_w + 2*big, big - y1, cube_h + 2*big], center=true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// The block sliced into stripe_n bands along Y, each band colored alternately.
|
||||||
|
module tunnelblock_striped() {
|
||||||
|
for (i = [0 : stripe_n-1]) {
|
||||||
|
y0 = -cube_d/2 + i*stripe_w;
|
||||||
|
color(stripe_colors[i % len(stripe_colors)])
|
||||||
|
difference() {
|
||||||
|
tunnelblock();
|
||||||
|
outside(y0, y0 + stripe_w);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tunnelblock_striped();
|
||||||
|
|
||||||
|
// To render the plain, unstriped block instead, use: tunnelblock();
|
||||||
|
After Width: | Height: | Size: 45 KiB |
@@ -0,0 +1,32 @@
|
|||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
cube_h = 80;
|
||||||
|
cube_w = 80;
|
||||||
|
cube_d = 40;
|
||||||
|
|
||||||
|
rounding = 2;
|
||||||
|
|
||||||
|
oval_cutout_h = 15;
|
||||||
|
|
||||||
|
rect_cutout_w = 45;
|
||||||
|
rect_cutout_h = 65-oval_cutout_h;
|
||||||
|
|
||||||
|
$fn=150;
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
cuboid([cube_w,cube_d,cube_h], rounding=rounding, anchor=[0,0,-1]);
|
||||||
|
|
||||||
|
group() {
|
||||||
|
rotate([90,0,0])
|
||||||
|
difference() {
|
||||||
|
cuboid([rect_cutout_w,rect_cutout_h,cube_d], chamfer=-rounding, anchor=[0,-1,0]);
|
||||||
|
translate([0,rect_cutout_h,0])
|
||||||
|
cuboid([2*rect_cutout_w,rect_cutout_h,cube_d], anchor=[0,-1,0]);
|
||||||
|
}
|
||||||
|
translate([0,0,rect_cutout_h])
|
||||||
|
resize([0,0,2*oval_cutout_h])
|
||||||
|
rotate([90,0,0])
|
||||||
|
cyl(h=cube_d, d=rect_cutout_w, chamfer=-rounding);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 34 KiB |
@@ -0,0 +1,91 @@
|
|||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
include <BOSL2/hooks.scad>
|
||||||
|
|
||||||
|
$fn = 75;
|
||||||
|
|
||||||
|
/* [Clip] */
|
||||||
|
|
||||||
|
// Thickness of the clip
|
||||||
|
roof_clip_thickness = 3;
|
||||||
|
|
||||||
|
// Width of the clip (height on the print bed)
|
||||||
|
roof_clip_width = 7;
|
||||||
|
|
||||||
|
// Length of the straight pieces of the clip
|
||||||
|
roof_clip_length = 110;
|
||||||
|
|
||||||
|
// Angle of the opening
|
||||||
|
roof_clip_opening_deg = 160; // [90:180]
|
||||||
|
|
||||||
|
// Radius of the round part at the top of the opening
|
||||||
|
roof_clip_opening_radius = 25;
|
||||||
|
|
||||||
|
/* [Light Holder] */
|
||||||
|
|
||||||
|
// Diameter of the light
|
||||||
|
light_diameter = 16.25;
|
||||||
|
|
||||||
|
// Offset of the light from the center of the roof ridge
|
||||||
|
light_offset = 25;
|
||||||
|
|
||||||
|
// Width of the opening at the light holder
|
||||||
|
light_opening = 6;
|
||||||
|
|
||||||
|
// Distance between first and second light holder
|
||||||
|
light_second_distance = 25;
|
||||||
|
|
||||||
|
assert(light_second_distance>=light_offset);
|
||||||
|
|
||||||
|
clip_path = turtle([
|
||||||
|
"left", 90,
|
||||||
|
"arcleft", roof_clip_opening_radius, roof_clip_opening_deg/2,
|
||||||
|
"move", roof_clip_length,
|
||||||
|
"left", 45,
|
||||||
|
"move", 15,
|
||||||
|
"left", 90,
|
||||||
|
"move", 15
|
||||||
|
]);
|
||||||
|
|
||||||
|
second_holder_path = turtle([
|
||||||
|
"move", light_second_distance-(light_offset-light_diameter),
|
||||||
|
"arcleft", light_offset-light_diameter, 90,
|
||||||
|
"move", light_diameter
|
||||||
|
]);
|
||||||
|
|
||||||
|
module holder_clip() {
|
||||||
|
translate([0,light_offset,0])
|
||||||
|
difference() {
|
||||||
|
ring_hook([2*roof_clip_thickness+light_diameter, roof_clip_thickness], 0.5*light_diameter+roof_clip_width, id=light_diameter, wall=roof_clip_thickness, spin=90);
|
||||||
|
up(light_diameter+roof_clip_width)
|
||||||
|
cube([roof_clip_thickness,light_opening,light_diameter], center=true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
linear_extrude(roof_clip_width)
|
||||||
|
group() {
|
||||||
|
/* left roof clip side */
|
||||||
|
stroke(clip_path, width=roof_clip_thickness, closed=false);
|
||||||
|
|
||||||
|
/* right roof clip side */
|
||||||
|
yflip()
|
||||||
|
stroke(clip_path, width=roof_clip_thickness, closed=false);
|
||||||
|
|
||||||
|
/* Second light holder */
|
||||||
|
stroke(second_holder_path, width=roof_clip_thickness, closed=false);
|
||||||
|
|
||||||
|
/* Dot for additional support */
|
||||||
|
right(roof_clip_thickness)
|
||||||
|
regular_ngon(n=3, id=2*roof_clip_thickness);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Light holder */
|
||||||
|
left(roof_clip_thickness/2)
|
||||||
|
cube([roof_clip_thickness,light_offset+light_diameter/2+roof_clip_thickness,roof_clip_width]);
|
||||||
|
|
||||||
|
/* Light holder clip */
|
||||||
|
holder_clip();
|
||||||
|
|
||||||
|
/* Second light holder clip */
|
||||||
|
right(light_second_distance)
|
||||||
|
holder_clip();
|
||||||
|
After Width: | Height: | Size: 50 KiB |
@@ -0,0 +1,18 @@
|
|||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
height = 70;
|
||||||
|
diameter = 30;
|
||||||
|
cutout_offset = 2;
|
||||||
|
|
||||||
|
$fn=150;
|
||||||
|
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
group() {
|
||||||
|
cyl(h=height-diameter/2, d=diameter, anchor=BOTTOM);
|
||||||
|
translate([0,0,height-diameter/2])
|
||||||
|
sphere(d=diameter);
|
||||||
|
}
|
||||||
|
translate([diameter/2-cutout_offset,diameter/2-cutout_offset,0])
|
||||||
|
cuboid([diameter,diameter,height], anchor=BOTTOM);
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 14 KiB |
@@ -0,0 +1,22 @@
|
|||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
ring_diam = 58;
|
||||||
|
ring_height = 24;
|
||||||
|
ring_thickness = 1;
|
||||||
|
|
||||||
|
$fn = 150;
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
tube(h=ring_height, id=ring_diam, wall=ring_thickness);
|
||||||
|
|
||||||
|
group() {
|
||||||
|
translate([-0.75*ring_diam,0,0])
|
||||||
|
regular_prism(3,r=ring_diam/2,h=ring_height);
|
||||||
|
translate([ring_diam/4,0,0])
|
||||||
|
rotate([90,0,90])
|
||||||
|
linear_extrude(ring_diam/2)
|
||||||
|
// Size: 16 for single letters, 12 for text
|
||||||
|
text("A", size = 16, font = "Saira Stencil One:style=Regular", halign = "center", valign = "center");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
|
|||||||
|
After Width: | Height: | Size: 48 KiB |
@@ -0,0 +1,24 @@
|
|||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
wall_thickness = 2;
|
||||||
|
|
||||||
|
pipe_outer_diameter = 80;
|
||||||
|
|
||||||
|
// Distance between the pipe end and the middle rim
|
||||||
|
pipe_attachment_length = 15;
|
||||||
|
|
||||||
|
// How far does the middle rim protrude from the pipe
|
||||||
|
rim_size = 3;
|
||||||
|
|
||||||
|
pipe_total_length = 2*pipe_attachment_length+rim_size+rim_size/3;
|
||||||
|
|
||||||
|
$fn = 150;
|
||||||
|
|
||||||
|
tube(h=pipe_total_length, od=pipe_outer_diameter, wall=wall_thickness, chamfer=wall_thickness/4);
|
||||||
|
|
||||||
|
tube(h=rim_size/3, id=pipe_outer_diameter, wall=rim_size);
|
||||||
|
translate([0,0,rim_size/6])
|
||||||
|
tube(h=rim_size/2, id=pipe_outer_diameter, od2=pipe_outer_diameter, od1=pipe_outer_diameter+2*rim_size, anchor=BOT);
|
||||||
|
translate([0,0,-rim_size/6])
|
||||||
|
tube(h=rim_size/2, id=pipe_outer_diameter, od1=pipe_outer_diameter, od2=pipe_outer_diameter+2*rim_size, anchor=TOP);
|
||||||
@@ -12,7 +12,7 @@ clip_space = 12;
|
|||||||
|
|
||||||
outer_r = inner_r + 2;
|
outer_r = inner_r + 2;
|
||||||
|
|
||||||
$fn=80;
|
$fn=150;
|
||||||
|
|
||||||
/* First clip */
|
/* First clip */
|
||||||
WallClip();
|
WallClip();
|
||||||
|
|||||||