Compare commits

..
53 Commits
Author SHA1 Message Date
Stefan Thoss 442f846690 Add Brio tunnel 2026-11-19 20:31:24 -08:00
Stefan Thoss 6cb9540d51 Add drip ledge 2026-11-19 16:08:19 -08:00
Stefan Thoss 4b55efc8e2 Update some measurements 2026-11-04 16:53:06 -08:00
Stefan Thoss 05e5bca54d Add PVC drain end 2026-11-04 16:51:57 -08:00
Stefan Thoss d801554b7c Add multicolor play coin 2026-11-04 16:51:13 -08:00
Stefan Thoss e2e7f075ea Add striped tunnel 2026-11-04 16:50:48 -08:00
Stefan Thoss ee1decf1cb Add ring sizer 2026-07-21 22:06:07 -07:00
Stefan Thoss 84f4e1221b Add siding models 2026-07-21 22:04:21 -07:00
Stefan Thoss e5b6369477 Add sink drain adapter 2026-07-21 22:03:17 -07:00
Stefan Thoss f4a7dcc83a Add shoe shelf and door stopper 2026-03-21 13:28:33 -07:00
Stefan Thoss d36e518ee8 Ascending track to fireplace mantel 2026-02-22 10:07:58 -08:00
Stefan Thoss a82d2484f7 Fix Brio Bridge track alignment 2026-02-18 22:04:50 -08:00
Stefan Thoss 76fb9d0afe Update Brio print profiles 2026-01-29 21:27:39 -08:00
Stefan Thoss 8199454d4a Christmas light clip 2025-12-06 14:43:54 -08:00
Stefan Thoss 1493137959 Improve Brio bridge 2025-09-22 13:49:10 -07:00
Stefan Thoss 3c7df0e8db New Brio bridge 2025-09-19 10:54:16 -07:00
Stefan Thoss cd6e3d3118 Add Brio turntable 2025-09-18 11:30:37 -07:00
Stefan Thoss c9f613a5f8 Update Nespresso insert 2025-09-04 16:25:14 -07:00
Stefan Thoss d73e35068e Update script 2025-09-04 11:54:55 -07:00
Stefan Thoss 7f1f8a17d5 Update Nespresso insert 2025-09-04 11:54:41 -07:00
Stefan Thoss 30b9bb327e Update Nespresso hex design 2025-08-15 14:58:28 -07:00
Stefan Thoss d7ae17c191 Hex Nespresso insert 2025-08-14 21:17:10 -07:00
Stefan Thoss a5c49f45ad Cup letter wrap 2025-08-14 20:59:16 -07:00
Stefan Thoss bd3f87db7d Oil bottle coasters 2025-08-14 20:57:50 -07:00
Stefan Thoss 2365bb4595 Glow in the dark profile 2025-07-17 13:38:43 -07:00
Stefan Thoss 927ea506fd Update TPU toy cubes 2025-07-17 13:38:26 -07:00
Stefan Thoss 23aae4fd59 Add gitignore 2025-07-17 09:32:14 -07:00
Stefan Thoss 320239cab2 Phone holder for monitor 2025-06-27 10:45:06 -07:00
Stefan Thoss c01ea213f5 More toy cubes 2025-06-25 15:53:22 -07:00
Stefan Thoss 1995f68c5c Add another cube, spice rack organizer, new images 2025-06-21 21:15:24 -07:00
Stefan Thoss 1062b2efa3 Brio Tunnel Block 2025-06-21 21:07:47 -07:00
Stefan Thoss 6a081d4d0f Update README 2025-06-16 21:47:33 -07:00
Stefan Thoss cfb49eafe3 Fireplace holder 2025-06-16 21:46:49 -07:00
Stefan Thoss b84616487f README overview 2025-06-08 08:57:36 -07:00
Stefan Thoss 323fead5e0 Korg SP-280 volume knob 2025-05-19 09:51:02 -07:00
Stefan Thoss 31183d534b More Nvidia models 2025-05-10 21:15:16 -07:00
Stefan Thoss 7ef00c5f67 Toy figure 2025-05-10 21:13:52 -07:00
Stefan Thoss 321ff6456e Map wall clamp 2025-05-08 14:36:07 -07:00
Stefan Thoss be2a25175b Nvidia Tesla T4 print profiles 2025-05-01 11:03:56 -07:00
Stefan Thoss b732cde082 Nvidia A2 print profiles 2025-04-30 15:17:19 -07:00
Stefan Thoss b3dd02b66e Nvidia fan shrouds 2025-04-15 16:57:50 -07:00
Stefan Thoss 69adc43fd2 Air shield for server 2025-04-02 21:50:36 -07:00
Stefan Thoss aac1d2cfc9 Stronger Fenix clip 2025-04-02 21:48:28 -07:00
Stefan Thoss f4e34d897b Brio buffer stops 2025-04-02 21:48:03 -07:00
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
Stefan Thoss 562d0f4367 Duct coupler 2025-01-19 10:44:49 -08:00
Stefan Thoss 3833e26abf Regenerate STL files 2025-01-15 21:14:07 -08:00
Stefan Thoss a0d5f837e0 Add h1 cross and track supports 2025-01-15 21:12:13 -08:00
Stefan Thoss 4b2a88f252 Replace STL files 2025-01-14 21:28:46 -08:00
Stefan Thoss 6c34a098b7 Move tracks to modules, add Makefile 2025-01-14 21:27:48 -08:00
Stefan Thoss 28b42bc524 Add upstream generator lib 2025-01-14 12:51:21 -08:00
Stefan Thoss e1fc201368 Add more tracks 2025-01-14 12:50:58 -08:00
225 changed files with 2356521 additions and 50 deletions
+2
View File
@@ -0,0 +1,2 @@
lovevery-coin/*.zip
.vscode/
+336
View File
@@ -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
![brio-bridge.png](brio-bridge/brio-bridge.png)
Model files:
* brio-bridge.scad
## brio-tracks
![buffer-stops-v2.png](brio-tracks/buffer-stops-v2.png)
![turntable.png](brio-tracks/turntable.png)
![brio_tunnel.png](brio-tracks/brio_tunnel.png)
![brio_tunnel_curve.png](brio-tracks/brio_tunnel_curve.png)
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
![brio-tunnel-block.png](brio-tunnel-block/brio-tunnel-block.png)
Model files:
* brio-tunnel-block.scad
* brio-tunnel-block-striped.scad
## c9-lights-roof-clip
![c9-lights-roof-clip.png](c9-lights-roof-clip/c9-lights-roof-clip.png)
Model files:
* c9-lights-roof-clip.scad
## corner-door-stopper
![corner-door-stopper.png](corner-door-stopper/corner-door-stopper.png)
Model files:
* corner-door-stopper.scad
## cube-with-square-hole
![cube-with-square-hole.png](cube-with-square-hole/cube-with-square-hole.png)
Model files:
* cube-with-square-hole.scad
## cup-letter-wrap
![cup-letter-wrap-a.png](cup-letter-wrap/cup-letter-wrap-a.png)
Model files:
* cup-letter-wrap.scad
## cutlery-organizer
![cutlery-organizer-180x80x25.png](cutlery-organizer/cutlery-organizer-180x80x25.png)
![cutlery-organizer-240x80x40.png](cutlery-organizer/cutlery-organizer-240x80x40.png)
![cutlery-organizer-60x60x25.png](cutlery-organizer/cutlery-organizer-60x60x25.png)
Model files:
* cutlery-organizer.scad
## duct-coupler
![duct-coupler.png](duct-coupler/duct-coupler.png)
Model files:
* duct-coupler.scad
## exhaust-vent-wall-plate
![exhaust-vent-wall-plate.png](exhaust-vent-wall-plate/exhaust-vent-wall-plate.png)
Model files:
* exhaust-vent-wall-plate.scad
## fenix-e35r-wall-clip
![fenix-e35r-wall-clip-double.png](fenix-e35r-wall-clip/fenix-e35r-wall-clip-double.png)
![fenix-e35r-wall-clip-single.png](fenix-e35r-wall-clip/fenix-e35r-wall-clip-single.png)
Model files:
* fenix-e35r-wall-clip.scad
## fireplace-holder
![fireplace-holder.png](fireplace-holder/fireplace-holder.png)
Model files:
* fireplace-holder.scad
## fluke-lead-holder-hsw
![fluke-lead-holder-hsw.png](fluke-lead-holder-hsw/fluke-lead-holder-hsw.png)
Model files:
* fluke-lead-holder-hsw.scad
## hex-nespresso-insert
![hex-nespresso-insert-variant-2.png](hex-nespresso-insert/hex-nespresso-insert-variant-2.png)
![hex-nespresso-insert.png](hex-nespresso-insert/hex-nespresso-insert.png)
Model files:
* hex-nespresso-insert-variant.scad
* hex-nespresso-insert-variant-2.scad
* hex-nespresso-insert.scad
## home-assistant-voice-wall-mount
![home-assistant-voice-wall-mount.png](home-assistant-voice-wall-mount/home-assistant-voice-wall-mount.png)
Model files:
* home-assistant-voice-wall-mount.scad
## korg-piano-volume-knob
![korg-piano-volume-knob.png](korg-piano-volume-knob/korg-piano-volume-knob.png)
![korg-piano-volume-knob-bottom.png](korg-piano-volume-knob/korg-piano-volume-knob-bottom.png)
Model files:
* korg-piano-volume-knob.scad
## lovevery-coin
![lovevery-coin-one-sided.png](lovevery-coin/lovevery-coin-one-sided.png)
![lovevery-coin-raised.png](lovevery-coin/lovevery-coin-raised.png)
![lovevery-coin-stencil.png](lovevery-coin/lovevery-coin-stencil.png)
Model files:
* lovevery-coin-one-sided.scad
* lovevery-coin-raised.scad
* lovevery-coin-stencil.scad
## lovevery-coin-multicolor
![lovevery-coin-multicolor.png](lovevery-coin-multicolor/lovevery-coin-multicolor.png)
Model files:
* lovevery-coin-multicolor.scad
## m5-atom-echo-hsw-mount
![m5-atom-echo-hsw-mount.png](m5-atom-echo-hsw-mount/m5-atom-echo-hsw-mount.png)
Model files:
* m5-atom-echo-hsw-mount.scad
## map-wall-clamp
![map-wall-clamp.png](map-wall-clamp/map-wall-clamp.png)
Model files:
* map-wall-clamp.scad
## nvidia-server-gpu-fan-shroud
![nvidia-a2-fan-shroud.png](nvidia-server-gpu-fan-shroud/nvidia-a2-fan-shroud.png)
![nvidia-t4-fan-shroud.png](nvidia-server-gpu-fan-shroud/nvidia-t4-fan-shroud.png)
Model files:
* nvidia-a2-fan-shroud.scad
* nvidia-t4-fan-shroud.scad
## oil-bottle-coaster
![oil-bottle-coaster.png](oil-bottle-coaster/oil-bottle-coaster.png)
Model files:
* oil-bottle-coaster.scad
## phone-holder-monitor
![phone-holder-monitor.png](phone-holder-monitor/phone-holder-monitor.png)
Model files:
* phone-holder-monitor.scad
## pvc-drain-end
![pvc-drain-end.png](pvc-drain-end/pvc-drain-end.png)
Model files:
* pvc-drain-end.scad
## rafter-drip-ledge
![rafter-drip-ledge.png](rafter-drip-ledge/rafter-drip-ledge.png)
Model files:
* rafter-drip-ledge.scad
## ring-sizer
![ring-sizer.png](ring-sizer/ring-sizer.png)
Model files:
* ring-sizer.scad
## server-air-shield
![server-air-shield-525bay.png](server-air-shield/server-air-shield-525bay.png)
Model files:
* server-air-shield.scad
## shoe-shelf-wall-mount
![shoe-shelf-wall-mount.png](shoe-shelf-wall-mount/shoe-shelf-wall-mount.png)
Model files:
* shoe-shelf-wall-mount.scad
## siding-bird-feeder-hanger
![siding-bird-feeder-hanger.png](siding-bird-feeder-hanger/siding-bird-feeder-hanger.png)
Model files:
* siding-bird-feeder-hanger.scad
## siding-light-mount
![siding-light-mount.png](siding-light-mount/siding-light-mount.png)
Model files:
* siding-light-mount.scad
## simple-figurine
![simple-figurine.png](simple-figurine/simple-figurine.png)
Model files:
* simple-figurine.scad
## simple-rounded-s-hook
![simple-rounded-s-hook.png](simple-rounded-s-hook/simple-rounded-s-hook.png)
Model files:
* simple-rounded-s-hook.scad
## sink-drain-adapter
![sink-drain-adapter.png](sink-drain-adapter/sink-drain-adapter.png)
Model files:
* sink-drain-adapter.scad
## slim-rpi-wall-holder
![slim-rpi-wall-holder-zero.png](slim-rpi-wall-holder/slim-rpi-wall-holder-zero.png)
![slim-rpi-wall-holder.png](slim-rpi-wall-holder/slim-rpi-wall-holder.png)
Model files:
* slim-rpi-wall-holder.scad
## spice-rack-organizer
![spice-rack-organizer.png](spice-rack-organizer/spice-rack-organizer.png)
Model files:
* spice-rack-organizer.scad
## thirdreality-zigbee-sensor-mount
![thirdreality-zigbee-sensor-mount.png](thirdreality-zigbee-sensor-mount/thirdreality-zigbee-sensor-mount.png)
Model files:
* thirdreality-zigbee-sensor-mount.scad
## toy-cubes
![cylinder_with_round_hole.png](toy-cubes/cylinder_with_round_hole.png)
![pentagon_with_round_hole.png](toy-cubes/pentagon_with_round_hole.png)
![octagon_simple.png](toy-cubes/octagon_simple.png)
Model files:
* toy-cubes.scad
## tree-stand-floor-protector
![tree-stand-floor-protector.png](tree-stand-floor-protector/tree-stand-floor-protector.png)
Model files:
* tree-stand-floor-protector.scad
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

+223
View File
@@ -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));
}
}
Binary file not shown.
+14
View File
@@ -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/$@ -
+9
View File
@@ -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>.
Binary file not shown.
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.
+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.
-48
View File
@@ -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
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

+171
View File
@@ -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);
}
+56
View File
@@ -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]);
}
}
}
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

+54
View File
@@ -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]);
}
}
}
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.
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

+105
View File
@@ -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();
}
Binary file not shown.
Binary file not shown.
@@ -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();
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

+32
View File
@@ -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);
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.

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();
Binary file not shown.
Binary file not shown.
Binary file not shown.

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);
}
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+22
View File
@@ -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");
}
}
+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;
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

+24
View File
@@ -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();

Some files were not shown because too many files have changed in this diff Show More