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 |
@@ -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,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();
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 26 KiB |
@@ -0,0 +1,18 @@
|
|||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
width = 16;
|
||||||
|
height = 20;
|
||||||
|
depth = 24;
|
||||||
|
thickness = 4;
|
||||||
|
rounding = 2;
|
||||||
|
|
||||||
|
$fn = 150;
|
||||||
|
|
||||||
|
linear_extrude(height)
|
||||||
|
difference() {
|
||||||
|
translate([0,0])
|
||||||
|
rect([width+thickness,depth+2*thickness], rounding=rounding*[0,0,1,1]);
|
||||||
|
translate([thickness/2,0])
|
||||||
|
rect([width,depth], rounding=rounding*[0,1,1,0]);
|
||||||
|
}
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
HEADER_FILE="readme-header.md"
|
||||||
|
README_FILE="README.md"
|
||||||
|
|
||||||
|
# Create or truncate the README file
|
||||||
|
> "$README_FILE"
|
||||||
|
|
||||||
|
# Add the header to the README file
|
||||||
|
cat "$HEADER_FILE" >> "$README_FILE"
|
||||||
|
|
||||||
|
# Get a list of Git‑tracked directories (unique, sorted)
|
||||||
|
git_dirs=$(git ls-files | cut -d'/' -f1 | sort -u)
|
||||||
|
|
||||||
|
# Loop through each tracked directory
|
||||||
|
for dir in $git_dirs; do
|
||||||
|
# Ensure it's a directory
|
||||||
|
[ -d "$dir" ] || continue
|
||||||
|
|
||||||
|
# Add the section header
|
||||||
|
echo -e "\n## ${dir}\n" >> "$README_FILE"
|
||||||
|
|
||||||
|
# Embed PNG images
|
||||||
|
png_files=$(find "$dir" -maxdepth 1 -type f -name '*.png')
|
||||||
|
if [ -n "$png_files" ]; then
|
||||||
|
for png in $png_files; do
|
||||||
|
echo "" >> "$README_FILE"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Add links to Markdown files
|
||||||
|
md_files=$(find "$dir" -maxdepth 1 -type f -name '*.md')
|
||||||
|
if [ -n "$md_files" ]; then
|
||||||
|
echo -e "\nDocumentation:\n" >> "$README_FILE"
|
||||||
|
for md in $md_files; do
|
||||||
|
echo "* [${md##*/}](${md})" >> "$README_FILE"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
# List .scad files
|
||||||
|
echo -e "\nModel files:\n" >> "$README_FILE"
|
||||||
|
scad_files=$(find "$dir" -type f -name '*.scad')
|
||||||
|
if [ -n "$scad_files" ]; then
|
||||||
|
for scad in $scad_files; do
|
||||||
|
# Strip leading directory component
|
||||||
|
echo "* ${scad#$dir/}" >> "$README_FILE"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
After Width: | Height: | Size: 178 KiB |
@@ -0,0 +1,63 @@
|
|||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
$fn = 150;
|
||||||
|
|
||||||
|
pattern_width = 375; // Total width of pattern (mm)
|
||||||
|
pattern_height = 230; // Total height of pattern (mm)
|
||||||
|
pattern_thickness = 4; // Thickness of the entire pattern (mm)
|
||||||
|
ring_inner_diameter = 38; // Inner diameter of rings (mm)
|
||||||
|
ring_width = 2; // Width of ring walls (mm)
|
||||||
|
perimeter_width = 4; // Width of outer perimeter walls (mm)
|
||||||
|
|
||||||
|
ring_chamfer = 0.3*ring_width;
|
||||||
|
ring_spacing = ring_inner_diameter+ring_width+ring_chamfer;
|
||||||
|
|
||||||
|
module hex_insert() {
|
||||||
|
/* Outer perimeter */
|
||||||
|
difference() {
|
||||||
|
cube([pattern_width,pattern_height,pattern_thickness], anchor=[0,0,-1]);
|
||||||
|
cube([pattern_width-2*perimeter_width,pattern_height-2*perimeter_width,pattern_thickness], anchor=[0,0,-1]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Circle pattern */
|
||||||
|
intersection() {
|
||||||
|
cube([pattern_width-2*perimeter_width,pattern_height-2*perimeter_width,pattern_thickness], anchor=[0,0,-1]);
|
||||||
|
|
||||||
|
/* Rings (the extra `ring_spacing` for pattern height is for better alignment) */
|
||||||
|
grid_copies(size=[pattern_width,pattern_height+ring_spacing], spacing=ring_spacing, stagger=true)
|
||||||
|
tube(id=ring_inner_diameter, wall=ring_width, h=pattern_thickness, ichamfer2=ring_chamfer, anchor=[0,0,-1]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module hex_insert_left() {
|
||||||
|
difference() {
|
||||||
|
hex_insert();
|
||||||
|
|
||||||
|
group() {
|
||||||
|
right(0.75*ring_spacing)
|
||||||
|
grid_copies(size=[0.75*ring_spacing,pattern_height+ring_spacing], spacing=ring_spacing, stagger=true)
|
||||||
|
regular_prism(6, id=ring_spacing, h=3*pattern_thickness, realign=true, anchor=[0,0,0]);
|
||||||
|
right(ring_spacing/2)
|
||||||
|
cube([pattern_width/2,1.5*pattern_height,3*pattern_thickness], anchor=[-1,0,0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module hex_insert_right() {
|
||||||
|
difference() {
|
||||||
|
hex_insert();
|
||||||
|
|
||||||
|
group() {
|
||||||
|
left(0.25*ring_spacing)
|
||||||
|
grid_copies(size=[0.75*ring_spacing,pattern_height+ring_spacing], spacing=ring_spacing, stagger=true)
|
||||||
|
regular_prism(6, id=ring_spacing, h=3*pattern_thickness, realign=true, anchor=[0,0,0]);
|
||||||
|
//left(ring_spacing/2)
|
||||||
|
cube([pattern_width/2,1.5*pattern_height,3*pattern_thickness], anchor=[1,0,0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
hex_insert();
|
||||||
|
//left(5) hex_insert_left();
|
||||||
|
//right(5) hex_insert_right();
|
||||||
@@ -0,0 +1,119 @@
|
|||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
$fn = 150;
|
||||||
|
|
||||||
|
pattern_width = 375; // Total width of pattern (mm)
|
||||||
|
pattern_height = 220; // Total height of pattern (mm)
|
||||||
|
pattern_thickness = 4; // Thickness of the entire pattern (mm)
|
||||||
|
ring_inner_diameter = 38; // Inner diameter of rings (mm)
|
||||||
|
ring_width = 2; // Width of ring walls (mm)
|
||||||
|
line_width = 2; // Width of connecting lines (mm)
|
||||||
|
perimeter_width = 4; // Width of outer perimeter walls (mm)
|
||||||
|
hex_spacing = 45; // Distance between hex centers (mm)
|
||||||
|
|
||||||
|
ring_outer_radius = (ring_inner_diameter + 2 * ring_width) / 2;
|
||||||
|
|
||||||
|
module hex_ring_pattern_2d() {
|
||||||
|
union() {
|
||||||
|
// Create outer rectangular perimeter using difference
|
||||||
|
difference() {
|
||||||
|
square([pattern_width, pattern_height], center=true);
|
||||||
|
square([pattern_width - 2*perimeter_width, pattern_height - 2*perimeter_width], center=true);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get all valid ring positions
|
||||||
|
positions = get_hex_positions();
|
||||||
|
|
||||||
|
// Create rings at all valid positions
|
||||||
|
for (pos = positions) {
|
||||||
|
translate(pos) ring(r=ring_inner_diameter/2, ring_width=ring_width);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Create all connections
|
||||||
|
create_connections(positions);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Function to get all valid hexagonal ring positions
|
||||||
|
function get_hex_positions() = [
|
||||||
|
for (row = [-8:8])
|
||||||
|
for (col = [-10:10]) let(
|
||||||
|
x_pos = col * hex_spacing + (row % 2) * hex_spacing/2,
|
||||||
|
y_pos = row * hex_spacing * sin(60),
|
||||||
|
pos = [x_pos, y_pos]
|
||||||
|
)
|
||||||
|
if (abs(x_pos) + ring_outer_radius <= pattern_width/2 &&
|
||||||
|
abs(y_pos) + ring_outer_radius <= pattern_height/2)
|
||||||
|
pos
|
||||||
|
];
|
||||||
|
|
||||||
|
// Create all connections (hex grid + perimeter)
|
||||||
|
module create_connections(positions) {
|
||||||
|
if (len(positions) > 1) {
|
||||||
|
// Hex grid connections
|
||||||
|
for (i = [0:len(positions)-2]) {
|
||||||
|
for (j = [i+1:len(positions)-1]) {
|
||||||
|
pos1 = positions[i];
|
||||||
|
pos2 = positions[j];
|
||||||
|
dist = norm(pos2 - pos1);
|
||||||
|
|
||||||
|
// Connect adjacent rings
|
||||||
|
if (dist > hex_spacing * 0.9 && dist < hex_spacing * 1.1) {
|
||||||
|
connect_rings(pos1, pos2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Perimeter connections
|
||||||
|
for (pos = positions) {
|
||||||
|
connect_to_edges(pos);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Connect two rings with a line
|
||||||
|
module connect_rings(pos1, pos2) {
|
||||||
|
angle = atan2(pos2[1] - pos1[1], pos2[0] - pos1[0]);
|
||||||
|
start_point = pos1 + [cos(angle), sin(angle)] * (ring_inner_diameter/2);
|
||||||
|
end_point = pos2 - [cos(angle), sin(angle)] * (ring_inner_diameter/2);
|
||||||
|
|
||||||
|
move((start_point + end_point)/2)
|
||||||
|
rot(angle)
|
||||||
|
square([norm(end_point - start_point), line_width], center=true);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Connect a ring to nearby perimeter edges
|
||||||
|
module connect_to_edges(pos) {
|
||||||
|
x = pos[0]; y = pos[1];
|
||||||
|
half_w = pattern_width/2; half_h = pattern_height/2;
|
||||||
|
|
||||||
|
// Connect to edges if ring is within 1.5 spacing units
|
||||||
|
if (x <= -half_w + hex_spacing * 1.5 && abs(y) <= half_h - perimeter_width) {
|
||||||
|
start = [x - ring_inner_diameter/2, y];
|
||||||
|
end = [-half_w, y];
|
||||||
|
move((start + end)/2) square([norm(end - start), line_width], center=true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (x >= half_w - hex_spacing * 1.5 && abs(y) <= half_h - perimeter_width) {
|
||||||
|
start = [x + ring_inner_diameter/2, y];
|
||||||
|
end = [half_w, y];
|
||||||
|
move((start + end)/2) square([norm(end - start), line_width], center=true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (y >= half_h - hex_spacing * 1.5 && abs(x) <= half_w - perimeter_width) {
|
||||||
|
start = [x, y + ring_inner_diameter/2];
|
||||||
|
end = [x, half_h];
|
||||||
|
move((start + end)/2) rot(90) square([norm(end - start), line_width], center=true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (y <= -half_h + hex_spacing * 1.5 && abs(x) <= half_w - perimeter_width) {
|
||||||
|
start = [x, y - ring_inner_diameter/2];
|
||||||
|
end = [x, -half_h];
|
||||||
|
move((start + end)/2) rot(90) square([norm(end - start), line_width], center=true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
linear_extrude(pattern_thickness) {
|
||||||
|
hex_ring_pattern_2d();
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 114 KiB |
@@ -0,0 +1,61 @@
|
|||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
$fn = 150;
|
||||||
|
|
||||||
|
pattern_width = 375; // Total width of pattern
|
||||||
|
pattern_height = 230; // Total height of pattern
|
||||||
|
pattern_thickness = 4; // Thickness of the entire pattern
|
||||||
|
ring_inner_diameter = 38; // Inner diameter of rings
|
||||||
|
ring_width = 2; // Width of ring walls
|
||||||
|
perimeter_width = 4; // Width of outer perimeter walls
|
||||||
|
bottom_thickness = 1; // Thickness of the bottom part
|
||||||
|
|
||||||
|
ring_chamfer = 0.5*ring_width;
|
||||||
|
ring_spacing = ring_inner_diameter+ring_width+ring_chamfer;
|
||||||
|
|
||||||
|
module hex_insert() {
|
||||||
|
difference() {
|
||||||
|
/* Outer perimeter + bottom */
|
||||||
|
cube([pattern_width,pattern_height,pattern_thickness+bottom_thickness], anchor=[0,0,-1]);
|
||||||
|
|
||||||
|
/* Circle pattern */
|
||||||
|
up(bottom_thickness) {
|
||||||
|
poly = rect([pattern_width-ring_inner_diameter,pattern_height-ring_inner_diameter]);
|
||||||
|
grid_copies(size=[pattern_width+ring_spacing,pattern_height+ring_spacing], spacing=ring_spacing, inside=poly, stagger=true) // adding `ring_spacing` to width and height to ensure the pattern is filled
|
||||||
|
cyl(d=ring_inner_diameter, h=pattern_thickness, chamfer2=-ring_chamfer, anchor=[0,0,-1]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module hex_insert_left() {
|
||||||
|
difference() {
|
||||||
|
hex_insert();
|
||||||
|
|
||||||
|
group() {
|
||||||
|
right(0.25*ring_spacing)
|
||||||
|
grid_copies(size=[0.75*ring_spacing,pattern_height+ring_spacing], spacing=ring_spacing, stagger=true)
|
||||||
|
regular_prism(6, id=ring_spacing, h=4*pattern_thickness, realign=true, anchor=[0,0,0]);
|
||||||
|
// right(0.5*ring_spacing)
|
||||||
|
cube([pattern_width/2,1.5*pattern_height,4*pattern_thickness], anchor=[-1,0,0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module hex_insert_right() {
|
||||||
|
difference() {
|
||||||
|
hex_insert();
|
||||||
|
|
||||||
|
group() {
|
||||||
|
left(0.75*ring_spacing)
|
||||||
|
grid_copies(size=[0.75*ring_spacing,pattern_height+ring_spacing], spacing=ring_spacing, stagger=true)
|
||||||
|
regular_prism(6, id=ring_spacing, h=4*pattern_thickness, realign=true, anchor=[0,0,0]);
|
||||||
|
left(0.5*ring_spacing)
|
||||||
|
cube([pattern_width/2,1.5*pattern_height,4*pattern_thickness], anchor=[1,0,0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//hex_insert();
|
||||||
|
//left(5) hex_insert_left();
|
||||||
|
right(5) hex_insert_right();
|
||||||
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 80 KiB |
@@ -0,0 +1,44 @@
|
|||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
knob_h = 15;
|
||||||
|
knob_d = 15;
|
||||||
|
knob_chamfer = 1;
|
||||||
|
|
||||||
|
bottom_d = 20;
|
||||||
|
|
||||||
|
tolerance = 0.05;
|
||||||
|
|
||||||
|
cutout_h = 10;
|
||||||
|
cutout_d = 6+tolerance;
|
||||||
|
cutout_flat_d = 4.5+tolerance;
|
||||||
|
|
||||||
|
$fn = 150;
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
/* Knob */
|
||||||
|
group() {
|
||||||
|
tex = texture("diamonds");
|
||||||
|
linear_sweep(
|
||||||
|
circle(d=knob_d), texture=tex, h=knob_h, tex_depth=0.5, tex_size=[2,2], style="concave"
|
||||||
|
);
|
||||||
|
cyl(h=2*knob_chamfer, d=bottom_d, chamfer2=knob_chamfer, anchor=[0,0,-1]);
|
||||||
|
}
|
||||||
|
|
||||||
|
group() {
|
||||||
|
/* Cutout */
|
||||||
|
difference() {
|
||||||
|
cyl(h=cutout_h, d=cutout_d, anchor=[0,0,-1]);
|
||||||
|
translate([cutout_flat_d,0,0])
|
||||||
|
cube([cutout_d,cutout_d,cutout_h], anchor=[0,0,-1]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Top chamfer */
|
||||||
|
translate([0,0,knob_h])
|
||||||
|
chamfer_cylinder_mask(d=knob_d+1, chamfer=knob_chamfer);
|
||||||
|
|
||||||
|
/* Indicator */
|
||||||
|
translate([-knob_d/2-0.5,0,knob_h])
|
||||||
|
cube([knob_d/2,2,0.5], anchor=[-1,0,1]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 54 KiB |
@@ -0,0 +1,45 @@
|
|||||||
|
coin_d = 2*25.4; // 2"
|
||||||
|
coin_h = (9/64)*25.4; // 9/64"
|
||||||
|
edge = 4;
|
||||||
|
|
||||||
|
space = 10;
|
||||||
|
smoothing = 1;
|
||||||
|
|
||||||
|
$fn = 100;
|
||||||
|
|
||||||
|
module Text(character) {
|
||||||
|
offset(r=smoothing) offset(r=-2*smoothing) offset(r=smoothing)
|
||||||
|
text(character, size = 35, font = "Liberation Mono:style=Bold", halign = "center", valign = "center");
|
||||||
|
}
|
||||||
|
|
||||||
|
module CharCoin(character) {
|
||||||
|
difference() {
|
||||||
|
color("yellow") cylinder(h = coin_h, d = coin_d);
|
||||||
|
cylinder(h = coin_h, d = coin_d-2*edge);
|
||||||
|
}
|
||||||
|
difference() {
|
||||||
|
color("gray") cylinder(h = coin_h, d = coin_d-2*edge);
|
||||||
|
group() {
|
||||||
|
linear_extrude(coin_h/3)
|
||||||
|
rotate([0,180,0])
|
||||||
|
Text(character);
|
||||||
|
translate([0,0,(2/3)*coin_h+0.001])
|
||||||
|
linear_extrude(coin_h/3)
|
||||||
|
Text(character);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
color("yellow") group() {
|
||||||
|
linear_extrude(coin_h/3)
|
||||||
|
rotate([0,180,0])
|
||||||
|
Text(character);
|
||||||
|
translate([0,0,(2/3)*coin_h+0.001])
|
||||||
|
linear_extrude(coin_h/3)
|
||||||
|
Text(character);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for(num = [0 : 9])
|
||||||
|
translate([(num%3)*(coin_d+space),-(num/3)*(coin_d+space),0])
|
||||||
|
CharCoin(str(num));
|
||||||
|
|
||||||
|
//CharCoin("");
|
||||||
|
After Width: | Height: | Size: 29 KiB |
@@ -0,0 +1,29 @@
|
|||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
width = 15;
|
||||||
|
height = 34.5;
|
||||||
|
depth = 18.75;
|
||||||
|
thickness = 2;
|
||||||
|
rounding = 2;
|
||||||
|
hole_diameter = 4.5;
|
||||||
|
|
||||||
|
$fn = 150;
|
||||||
|
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
group() {
|
||||||
|
translate([0,0,(depth+thickness)/2])
|
||||||
|
cuboid([width,height+2*thickness,depth+thickness], rounding=rounding, edges=[TOP+BACK,TOP+FWD]);
|
||||||
|
translate([0,(height+width)/2+thickness,thickness/2])
|
||||||
|
cuboid([width,width,thickness], rounding=rounding, edges=[BACK+RIGHT,BACK+LEFT]);
|
||||||
|
}
|
||||||
|
group() {
|
||||||
|
translate([0,0,depth/2])
|
||||||
|
cuboid([2*width,height,depth], rounding=rounding, edges=[TOP+BACK,TOP+FWD]);
|
||||||
|
translate([0,-(height+thickness)/2,thickness/2])
|
||||||
|
cuboid([2*width,thickness,thickness]);
|
||||||
|
translate([0,(height+width)/2+thickness,0])
|
||||||
|
cylinder(h=thickness, d=hole_diameter);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 66 KiB |
@@ -1,19 +1,26 @@
|
|||||||
/* https://github.com/BelfrySCAD/BOSL2 */
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
include <BOSL2/std.scad>
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
fan_size = 80;
|
fan_size = 80; // [40,60,80,92,120]
|
||||||
|
// Thickness of plate that attaches to the fan
|
||||||
plate_thickness = 2;
|
plate_thickness = 2;
|
||||||
|
|
||||||
mounting_hole_offset = 71.5/2;
|
// Length of shroud between fan and GPU
|
||||||
mounting_hole_diameter = 4.5;
|
shroud_length = 30;
|
||||||
|
// Thickness of shroud wall
|
||||||
shroud_length = 25;
|
|
||||||
shroud_thickness = 4;
|
shroud_thickness = 4;
|
||||||
shroud_offset_v = 0; // positive = fan to the bottom
|
|
||||||
shroud_offset_h = 0; // positive = fan to the right
|
// Vertical shroud offset, 0 = flush at the bottom, positive number = fan towards the bottom
|
||||||
|
shroud_offset_v = 0;
|
||||||
|
// Horizontal shroud offset, 0 = centered, positive number = fan towards the right
|
||||||
|
shroud_offset_h = 0;
|
||||||
|
|
||||||
fan_diameter = fan_size-2;
|
fan_diameter = fan_size-2;
|
||||||
|
|
||||||
|
/* [Hidden] */
|
||||||
|
|
||||||
|
mounting_hole_diameter = 4.4;
|
||||||
|
|
||||||
gpu_width = 18.7;
|
gpu_width = 18.7;
|
||||||
gpu_height = 54.5;
|
gpu_height = 54.5;
|
||||||
gpu_length = 15;
|
gpu_length = 15;
|
||||||
@@ -70,8 +77,21 @@ difference() {
|
|||||||
/* Mounting holes */
|
/* Mounting holes */
|
||||||
for (i = [-1, 1]) {
|
for (i = [-1, 1]) {
|
||||||
for (j = [-1, 1]) {
|
for (j = [-1, 1]) {
|
||||||
translate([i * mounting_hole_offset, j * mounting_hole_offset, 0])
|
if(fan_size == 40) let(mounting_hole_offset=32/2)
|
||||||
cylinder(d=mounting_hole_diameter, h=plate_thickness, center=true);
|
translate([i * mounting_hole_offset, j * mounting_hole_offset, 0])
|
||||||
|
cylinder(d=mounting_hole_diameter, h=plate_thickness, center=true);
|
||||||
|
if(fan_size == 60) let(mounting_hole_offset=50/2)
|
||||||
|
translate([i * mounting_hole_offset, j * mounting_hole_offset, 0])
|
||||||
|
cylinder(d=mounting_hole_diameter, h=plate_thickness, center=true);
|
||||||
|
if(fan_size == 80) let(mounting_hole_offset=71.5/2)
|
||||||
|
translate([i * mounting_hole_offset, j * mounting_hole_offset, 0])
|
||||||
|
cylinder(d=mounting_hole_diameter, h=plate_thickness, center=true);
|
||||||
|
if(fan_size == 92) let(mounting_hole_offset=82/2)
|
||||||
|
translate([i * mounting_hole_offset, j * mounting_hole_offset, 0])
|
||||||
|
cylinder(d=mounting_hole_diameter, h=plate_thickness, center=true);
|
||||||
|
if(fan_size == 120) let(mounting_hole_offset=105/2)
|
||||||
|
translate([i * mounting_hole_offset, j * mounting_hole_offset, 0])
|
||||||
|
cylinder(d=mounting_hole_diameter, h=plate_thickness, center=true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
|
After Width: | Height: | Size: 43 KiB |
@@ -0,0 +1,45 @@
|
|||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
$fn = 150;
|
||||||
|
|
||||||
|
border_width = 5;
|
||||||
|
border_height = 5;
|
||||||
|
border_chamfer = 3;
|
||||||
|
|
||||||
|
bottle_width = 62;
|
||||||
|
bottle_rounding = 20;
|
||||||
|
|
||||||
|
coaster_height = 2;
|
||||||
|
coaster_width = bottle_width+2*border_width;
|
||||||
|
|
||||||
|
module bottle_coaster(width, height) {
|
||||||
|
cuboid(
|
||||||
|
[width,height,coaster_height],
|
||||||
|
rounding=bottle_rounding+border_width/2,
|
||||||
|
edges="Z",
|
||||||
|
anchor=[0,0,-1]
|
||||||
|
);
|
||||||
|
up(coaster_height)
|
||||||
|
rect_tube(
|
||||||
|
size=[width,height],
|
||||||
|
wall=border_width,
|
||||||
|
h=border_height-border_chamfer,
|
||||||
|
rounding=bottle_rounding+border_width/2,
|
||||||
|
irounding=bottle_rounding,
|
||||||
|
anchor=[0,0,-1]
|
||||||
|
);
|
||||||
|
up(coaster_height+border_height-border_chamfer)
|
||||||
|
rect_tube(
|
||||||
|
size1=[width,height],
|
||||||
|
size2=[width-border_chamfer,height-border_chamfer],
|
||||||
|
isize1=[width-2*border_width,height-2*border_width],
|
||||||
|
isize2=[width-2*border_width+border_chamfer,height-2*border_width+border_chamfer],
|
||||||
|
h=border_chamfer,
|
||||||
|
rounding=bottle_rounding+border_width/2,
|
||||||
|
irounding=bottle_rounding,
|
||||||
|
anchor=[0,0,-1]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
bottle_coaster(width=coaster_width, height=coaster_width);
|
||||||
|
After Width: | Height: | Size: 20 KiB |
@@ -0,0 +1,60 @@
|
|||||||
|
/* https://github.com/BelfrySCAD/BOSL2 */
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
|
||||||
|
device_w = 78;
|
||||||
|
device_h = 130;
|
||||||
|
device_d = 13;
|
||||||
|
|
||||||
|
bottom_h = 90;
|
||||||
|
|
||||||
|
front_cutout_offset = 5;
|
||||||
|
|
||||||
|
cable_cutout_w = 54;
|
||||||
|
cable_cutout_d = 8;
|
||||||
|
cable_cutout_rounding = 1;
|
||||||
|
|
||||||
|
box_t = 2;
|
||||||
|
box_rounding = 3;
|
||||||
|
device_rounding = 5;
|
||||||
|
|
||||||
|
monitor_thickness = 30;
|
||||||
|
monitor_holder_h = 30;
|
||||||
|
|
||||||
|
$fn = 150;
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
group() {
|
||||||
|
/* Main holder */
|
||||||
|
translate([0,0,-(device_h-bottom_h+box_t)/2])
|
||||||
|
cuboid([device_w+2*box_t,device_d+2*box_t,bottom_h+box_t], rounding = box_rounding, except = TOP);
|
||||||
|
|
||||||
|
/* Back plate */
|
||||||
|
translate([0,(device_d+box_t)/2,0])
|
||||||
|
cuboid([device_w-device_rounding,box_t,device_w-device_rounding], rounding = device_rounding, edges="Y");
|
||||||
|
|
||||||
|
/* Behind-monitor plate */
|
||||||
|
translate([0,(device_d+box_t)/2+monitor_thickness,(device_w-device_rounding-monitor_holder_h)/2])
|
||||||
|
cuboid([device_w-device_rounding,box_t,monitor_holder_h], rounding = device_rounding, edges="Y");
|
||||||
|
|
||||||
|
/* Over-monitor holders */
|
||||||
|
translate([device_w/2-1.5*device_rounding,(device_d+box_t+monitor_thickness)/2,device_w/2-1.5*device_rounding])
|
||||||
|
rotate([90,0,0])
|
||||||
|
cylinder(h = monitor_thickness, r = device_rounding, center = true);
|
||||||
|
translate([-(device_w/2-1.5*device_rounding),(device_d+box_t+monitor_thickness)/2,device_w/2-1.5*device_rounding])
|
||||||
|
rotate([90,0,0])
|
||||||
|
cylinder(h = monitor_thickness, r = device_rounding, center = true);
|
||||||
|
}
|
||||||
|
group() {
|
||||||
|
/* Device cutout */
|
||||||
|
translate([0,0,0])
|
||||||
|
cuboid([device_w, device_d, device_h]);
|
||||||
|
|
||||||
|
/* Front cutout */
|
||||||
|
translate([0,-(device_d+box_t)/2,front_cutout_offset])
|
||||||
|
cuboid([device_w-2*front_cutout_offset,2*box_t,device_h], rounding = device_rounding, edges="Y");
|
||||||
|
|
||||||
|
/* Plug cutout */
|
||||||
|
translate([0,0,-device_h/2])
|
||||||
|
cuboid([cable_cutout_w,cable_cutout_d,bottom_h], rounding = cable_cutout_rounding);
|
||||||
|
}
|
||||||
|
}
|
||||||