Probably the best example and model is the Secret heart box. Just a stunning masterclass in designing and printing encapsulated hinges.
http://www.thingiverse.com/thing:44579

And also done in openscad.