chickadee » aima » tessellate

tessellateprocedure
tessellate n-verticesprocedure

Tessellate the plane into disjoint, convex polygons.

n-vertices
The numbers of vertices in the tessellation
(define tessellate
  (case-lambda
    (() (tessellate (n-vertices)))
    ((n-vertices)
     (let* ((R-voronoi (R-voronoi n-vertices)) (voronoi (voronoi R-voronoi)))
       (let* ((neighbors (neighbors voronoi)) (points (points neighbors)))
         (let ((start (start points)) (end (end points)))
           (make-tessellation R-voronoi points neighbors start end)))))))