I re-wrote OpenSCAD code from scratch, but I did look at sgonzalezlopez code and learned what he was doing. I am therefore attributing this to him as a remix of his code. The main motivation for this was to have more control over the dividers and to have fully rounded corners in the box. I did not add any text features since I don't typically use them, but they could be easily added.
NOTE: I don't do a lot of parameter checks or provide a lot of detail on what values need to be larger than others, but it is easy to see what happens when a violation occurs when displaying the box.
ERROR: I noticed the box divider spacing didn't take into account the divider width and radius curve. Update SCAD with fix to come shortly.
UPDATE: V1.2 - Problem with tolerance inside lid lip and added more control over hinge distance from edge of box.
You may change the following parameters for the box:
- Box base height, width, and depth
- Box lid height
- Box wall thickness
- Box base lip rim thickness
- Height of base lip rim above top of box base
- Box corner radius
- Divider thickness
- Number of dividers along width of box
- Number of dividers along depth of box
- Evenly spaced width dividers or specify spacing for each divider
- Evenly spaced depth dividers or specify spacing for each divider
- Divders on base and lid, just on base, or only a certain height from base bottom
- Hinge length
- Hinge spacing from wall of box
- Hinge outer radius
- Hinge inner radius (hole)