Voronoi on Pipe

Hi everyone, i’m trying to figure out how to solve this problem. I’m making a voronoi snake shape. The flow works good with the surface pipe without caps, but when i try to make the complete surface (with filled caps on pipe) the script doesn’t work and i don’t know how to solve it! i tried to cut the brep istead of the surface but it didnt worked.

thanks in advance for your help!

Voronoi Pipe.gh (17.9 KB)