How to curve planes such that each child plane curvature matches it parents?

I think, it all comes from here: How to make a cube out of six bounding boxes - #9 by miguelmyers8