Updated LineMesh to new Mesh interface.