Cleaned up Mesh class.