How do I keep voronoi multipipe inside original polysurface boundry

Voronoi problem.3dm (369.1 KB)

Voronoi problem.gh (18.7 KB)
Hi everyone,

I am working in grasshopper in rhino 7 and don’t know the proper solution for this problem.

I applied a Voronoi texture according to tutorial to closed polysurface, and I want the Voronoi geometry to stay contained within the boundaries of that polysurface, after I run MultiPipe on it. Parts of the final pipes clip through the original geometry. But the solution to just scale it down isn’t an option, because the geometry is a helmet liner, so the outside and inside boundry has to stay the same.

I attach the geometry and grasshopper file and would appreciate any advice on the correct workflow or tools to use.

Thank you.

TLDR: keep purple voronoi geometry inside the original boundry

You can try offsetting a thickness equal to the NodeSize of MultiPipe, and fyi.

OffsetBrep.gh (18.6 KB)

Thank you!

That was kind of the thing I did in the end, just offesting the brep few times until it no longer overlapped.