Generate Lego-like bricks, plates, and tiles of various sizes.
What I hope sets this apart from other customizable Lego-like bricks available so far is a focus on creating STL files which will print well and fit with other bricks over accuracy to real Lego pieces. This manifests in several ways, including:
With this in mind, please read the following sections before using the customizer. They explain many of the options in more detail. Additionally, don't blindly download and print the sample STL brick files. That misses the point of the project. If you're not using Customizer or OpenSCAD to tweak the bricks for your environment, you're probably better off using someone else's pre-rendered brick STLs. These bricks are intended as a starting point, rendered using the default settings. Print them once, but then use them as a reference point for adjustments.
Note I only plan to support basic bricks. Look here for more exotic pieces.
This is still a work in progress, but it's far enough along to be ready for general use. I still need to create some adjustments for the inside of the brick, for how it fits the studs to a brick below it, and to reduce the thickness of the upper surface. Later, I want a 2.0 version that simplifies the adjustments based on feedback here. So, if you make a print, please leave a comment about how it worked!
UPDATE 3/6/2019
Various fixes, default adjustment changes, and support for post size adjustments on 2xN bricks.
UPDATE 3/17/2020
This is a significant revision. I re-wrote much of the scad code to use modules. This makes the code easier to change, and makes it possible to use this code as part of larger SCAD projects to make new and more-interesting things (I have something else in the works that will take advantage of this). The revision history, including the ability to download the prior version, is available via the GitHub link the Contribute section.
2x1_brick.stl | 82.0KB | |
2x2_brick.stl | 182.6KB | |
2x2_plate.stl | 162.7KB | |
4x1_brick.stl | 185.4KB | |
4x2_brick.stl | 410.5KB | |
create_brick.scad | 12.3KB |