Added variations to the mesh building functions.