I ran across a script for creating voronoi regions a while ago here. The script was great, but it created closed voronoi regions. I wanted a lattice so I came up with this RhinoScript. The script scales each face on each polysurface and booleans it with the original surface. The result is a lattice of the original amalgamation. There is also a version for regular, not poly, surfaces.