Openscad Lego-Like brick
by jag, published
You can adjust the size and tweak the dimensions of the various parts of the lego in the openscad file.
There are probably bugs, it's a work in progress.
A real lego snaps into the bottom pretty well, not as well on top.
Recent Commentsview all
I see it now. I haven't printed these since I had a thing-o-matic which was somewhat less precise.
I misunderstood you. I thought you were saying the sides weren't parallel. It turns out the reinforcements on the bottom weren't quite spaced correctly. Hopefully they are correct now.
Yes I am sure. The error can be measured in the STL file, which means the error has nothing to do with the slicer or printer. If you open the STL in MeshLab and use the measure tool you can see the error clearly.The pockets vary in size.
It is also visible by the naked eye directly in OpenSCAD now when I am aware of the error. Make the brick 2x2, press F5 and view the bottom side with CTRL+5.
Not quite sure how that could happen, everything is constructed in openscad with rectangles, no polygons so all the walls should be parallel. What size brick were you making? Are you sure it isn't your printer?
Is the outside of the brick a uniform size?
It is a little tricky getting the fit right, it depends a lot on the calibration of your printer. LEGOs are extremely precise little pieces. It's pretty much impossible to get as good a fit with an FDM machine.
Liked Byview all
Give a Shout Out
The width and length defines how long and wide the block is (surprise!). They are defined as the number of knobs in that direction, not the actual length in mm.
The height is a multiple of the standard height of a brick.
The axle_hole variable adds holes to the top of the brick to fit standard lego axles through. They may only fit partway through unless your printer can handle really thin walls.
The reinforcement variable adds ribs across the brick to reinforce it (which also makes it print nicer because it gives the bot somewhere to traverse between the posts on the underside of the brick without leaving strings everywhere)
You must be logged in to post a comment.