OpenSCAD script to generate LEGO bricks of any size.
I have included several example STLs generated with the script, but you can always make your own....
To create your own LEGO brick, just change the sizes in the makeLego command at the very bottom of the code to anything you want (and that your computer can render.) You can reduce the circle resolution for better render time by lowering the number on the very first line.