rendering done inside mesh class.