Lego brick generator tool for hinged plates of various sizes. Not 100% accurate but fits. It is build in such a way that it expect a metal pin of 1mm diameter to be put in. However you change that as a parameter in Open Scad.
It is needed to test out the tolerance parameter with your printer/extruder/material combination and see for yourself. Currently in v2 it is 0.00 however in the original generater (which this is remix of) is set to default 0.05
Edit - in v2 I have separated the two parts so it does not fuse together.
The author remixed this model.