Creating Custom Infill in Grasshopper From a Solid Brep for Additive Manufacturing

Hi Guys thanks in advance,

I am currently working on a Grasshopper Script to automate the generation of infill Geometry for a Large Scale Additive Manufacturing Machine (LSAM) we have recently acquired.
In the attached file you can find both the base geometry and created infill using basic grasshopper functions.
Towards the end of the script I have a solid body and an open brep that I want to generate a surface which would then be used for tool pathing. I have tried working on this for weeks with no success.
I am relatively a begineer (self-taught), so please dont judge the messy and redundant Grasshopper Definitions.
Cheers (25.7 KB) InfilTrial_1.3dm (1.8 MB)