45715
1831643
0
385
AnyBeam/AnyPanel is an OpenSCAD library for creating LEGO compatible studless beams using a declarative syntax to represent holes and connections. It is especially useful to create beams that are not produced by The LEGO Group. This is not a LEGO Group product nor is it endorsed by them.
NOTE - This library requires OpenSCAD version 2013.06 or higher.
Examples
A flat panel size 5x11.
anypanel( 5, 11 )
A beam with axle holes, pin holes, two bends and a long slot around a bend.
anybeam(
[ "XOOO", [ 4, 1, 53.13 ],
"OOO()", [ 5, 1, -53.13 ],
"(-)X" ]
);
A size 4 x 6 frame with axle holes in the corners.
anybeam(
[ "XOOX", [ 4, 1, 90 ],
"XOOOOX", [ 6, 1, 90 ],
"XOOX", [ 4, 1, 90 ],
"XOOOOX" ]
);
The "height" of the beam is specified in beam height units where 1 unit is the height of a standard beam with it's holes facing up.
Here is how to create a 1/3 height beam:
anybeam( [ "XOOX"], 1/3 );
Or a double height beam:
anybeam( [ "XOOX"], 2 );
Contributing
This project it hosted on GitHub athttps://github.com/digitalbytes/Things/tree/master/LEGO
Like