OpenSCAD train track library

by srepmub, published

OpenSCAD train track library by srepmub Jan 19, 2013

Featured Thing!

Thing Info

17931Views 5267Downloads Found in Construction Toys
Report Thing


Parametric OpenSCAD library to generate (BRIO-compatible?) train track parts.
Update 1: modified brick 4 so it better slices.
Update 2: added parametric connector (thing 15165 is too large).
Update 3: improved splitter, add some basic blocks, filter everything through netfabb, use more descriptive names, add some recent photos


Use included STL files, or modify the top and bottom of the OpenSCAD code to suit your needs. So far I only printed three parts myself, so let me know if there are any problems. And if you create an interesting new part using this lib, please send me the code or upload it as a new thing.

More from Construction Toys

view more

Thing Info

17931Views 5267Downloads Found in Construction Toys
Report Thing

Liked By

View All

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag. Print Thing Tag

I really enjoy printing (and remixing) your excellent library, my 2 years old son thanks you a lot for it. Me too :-))

thanks for the feedback, and the nice remixes!!

This is brilliant!

OMG so cool any chance u can show the hole thing and how big it is

Hi srepmub, This is excellent! Any chance that you could upload the "support" as an STL? Thanks!

Part 4 printed oddly for me, instead of the tracks crossing each other they had large amounts of material around the intersections, blocking the tracks.

thanks again, and sorry for being slow to react. I'm not sure exactly what caused the problem, but I could reproduce it here. after a bit of refactoring of the code for part 4, it now slices and prints fine (slic3r 0.9.8). so I updated the scad file and the stl for part 4, and also uploaded a photo of the printed part.

btw I hope you always check your gcode (for example by using repetierHost) before printing something..?

thanks for mentioning. I'm currently on vacation but was planning to print this part myself when I come back.. which slicer did you use?

You did a phenomenal job on the SCAD files! No shortcuts here: You have every little bevel and detail that the commercial tracks do, constants for everything, and enough functions to make any kind of track!

I had one problem:
I had to change the connector hole to be perfectly round or some of my tracks would not fit. I have a mix of a few different brands of tracks. Thing 15165 didn't fit either until I did this. It all worked out when I removed these 2 lines from module connector():

I also modified brick_6 to support making short curved+straight tracks, which is the holy grail of my track track setup! I'll post a derivative with pictures shortly.


thanks a lot for the compliments and feedback. I'm looking forward to see what you come up with!

Good material! Thanks!

I think there's an error with this thing. I can't find the file for the baby.