convert model data to mesh