Compare commits

..
4 Commits
Author SHA1 Message Date
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
38 changed files with 1074875 additions and 48 deletions
+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.
-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
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
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