moving mesh draw logic into Mesh class