This is a simple cube with a frame inside each side for keeping modular panels locked in place. This allows you to create your own panels that can be switched out after printing to create cubes with wildly different artistic or functional qualities.
The panels can be any thin, square panel that fits the dimensions of the cube, the dimensions of the cube is customizable in the .scad file included.
The cube.scad file has three variables that can be changed for holding different sized panels:
slot_size The panel size in mm that will be supported by the cube. Ie. setting this to 40 allows the cube to hold 40mm x 40mm size panels.
indent_ratio The ratio of frame that should be empty space. Ie. setting this to 1 will give you no frames at all. Setting 0.9 will make the frames take 10% of the slot size and leave 90% air.
base_cube_offset The padding in mm that is added to the cube outside the frame. Ie. setting this to 10 will make the cube 10mm longer on each side without affecting the panel size.
Note: There is a bug with OpenSCAD that makes preview mode not render properly, use render to view the proper cube.
Panels might have to be printed with scale of 99% in order to fit in the cube, though this might depend on your printer.
You should experiment with panel scale until you get a size that is a tight fit inside the frames.
Example cube and panels
The example cube is generated with cube.scad with the following parameters:
slot_size = 40
indent_ratio = 0.92
base_cube_offset = 10
The example panels included are generated from "Subdivided surfaces" by Fernando Jerez.
The panels were generated from to .scad file by setting width and height to 40 (ie. the same as the slot_size of the cube)