Voronoi 3D on Geometry

I have been trying to create this voronoi 3D facade on a geometry but have not been able to do so. The original script applies it to a sphere but my geometry is more cubic like. Someone please help!

Original Script


Present Script

This is an adapted version of your definition for your geometry.
In this definition, Nurbs Curvecomponent turns red because of the some triangular pieces that yield lack of control point count for degree 3 nurbs curve, but in this case, that’s not gonna be a problem though. You’ll need clipper plugin.

VoronoiVolume_re.gh (16.8 KB)

See this topic bellow also if you want a full of voronoi cells not just surface but inside as well.

You’re amazing! Thank you so much for your help! I’ll try this out for sure.