make 3d layout scheme from the 2d layout