ccvt_box_test, a MATLAB program which calls ccvt_box() to create and animate a Constrained Centroidal Voronoi Tessellation (CCVT) of points in a 2D box. After each iteration, points near the boundary are projected onto the boundary.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
ccvt_box, a MATLAB program which calculates a Constrained Centroidal Voronoi Tessellation (CCVT) constrained to a box region, with points projected to the boundary;