A voronoi diagram is a way of decomposition or subdivision of space based on an initial set of objects or points (for more information http://en.wikipedia.org/wiki/Voronoi). This is an algorithm that calculates and constructs a 3-dimensional voronoi diagram, implemented in MaxScript. Center points for the voronoi can be a selection of any class of objects and the container can be a mesh of any shape. Download the .ms file here.