Rewrite MeshViewer and GlutViewer.