Simple tessellation algorithm.