This is an SCAD code remix of https://www.thingiverse.com/thing:2424769
The code was refactored and several new options were added, including rectangular cross-sections, end caps, three sided trusses, and rounded edges. Customizer tabs were added to group related settings together.
The sample images and STLs are provided to give a notion of what is possible, but you'll probably want to go straight to the Thingiverse customizer, or the OpenSCAD app. The samples are for N-scale modeling, so their dimensions are very small and the prints not very strong.
The build volume of your printer is the only limitation. With the right settings and filament or resin, the trusses generated can handle very large loads.
For horizontal trusses you'll want to enable internal lateral bracing, and maybe increase the number of panels.
truss-brace.stl | 830.0KB | |
truss-long.stl | 1.2MB | |
truss-rect.stl | 1016.9KB | |
truss-rounded-square-end.stl | 1016.9KB | |
truss.scad | 4.8KB |