update mesh class