Putterfish - Tutorial

Want to make a 3d printed sole (Product design thesis) in rhino. Can somebody please resolve the grasshopper code for me? I am somehow not bale to get it although the basic concept here is 3d lattice. PFA of grasshopper and rhino file.Shoe lattice 3d.gh (23.5 KB)Shoe lattice 3d option 1.3dm (1.3 MB)