TPMS Modelling with Axolotl

Hi all,

I am trying to model TPMS but I think I am making a mistake somewhere. Does anyone have any information about this?I am adding the code and the image.
tmps.gh (8.6 KB)

tmps Edited v0.gh (37.4 KB)

Thanks a lot