move drawing into mesh class