Mesh generation algorithms.