L = regularSubdivision(P,w)
L = regularSubdivision(M,w)
This function computes the regular subdivision of P given by the weight vector w. This is computed by placing the ith lattice point of P on height w_i in n+1 space, taking the convexHull of these with the ray (0,...,0,1), and projecting the compact faces into n space. Note that the polyhedron must be compact, i.e. a polytope and the length of the weight vector must be the number of lattice points.
This function can also be used to compute the regular subdivision given a matrix M of points and a weight vector w. The points are lifted to the weights given by the matrix w, and the lower envelope is computed.







The object regularSubdivision is a method function.