        nvgRGBAf(1.0, 1.0, 1.0, scene->model.left_lane.prob));
  
    // Draw right lane edge
    ui_draw_lane(
        s, &scene->model.right_lane,
        pvd + MODEL_LANE_PATH_CNT,
        nvgRGBAf(1.0, 1.0, 1.0, scene->model.right_lane.prob));
  
    if(s->sm->updated("radarState")) {
      update_all_track_data(s);
    }
    // Draw vision path
 
</s> remove       s, &scene->model.left_lane,
      pvd,
      nvgRGBAf(1.0, 1.0, 1.0, scene->model.left_lane.prob));
 </s> add       s, pvd,
      nvgRGBAf(1.0, 1.0, 1.0, scene->model.getLeftLane().getProb())); </s> remove     update_all_lane_lines_data(s, scene->model.left_lane, pvd);
    update_all_lane_lines_data(s, scene->model.right_lane, pvd + MODEL_LANE_PATH_CNT);
 </s> add     update_all_lane_lines_data(s, scene->model.getLeftLane(), scene->left_lane_points, pvd);
    update_all_lane_lines_data(s, scene->model.getRightLane(), scene->right_lane_points, pvd + MODEL_LANE_PATH_CNT); </s> remove       py = path.points[i] + off;
 </s> add       py = points[i] + off; </s> remove static void ui_draw_lane(UIState *s, const PathData *path, model_path_vertices_data *pstart, NVGcolor color) {
 </s> add static void ui_draw_lane(UIState *s,  model_path_vertices_data *pstart, NVGcolor color) {
      s, pvd + MODEL_LANE_PATH_CNT,
      nvgRGBAf(1.0, 1.0, 1.0, scene->model.getRightLane().getProb()));
        nvgRGBAf(1.0, 1.0, 1.0, scene->model.left_lane.prob));
  
    // Draw right lane edge
    ui_draw_lane(
      s, pvd + MODEL_LANE_PATH_CNT,
      nvgRGBAf(1.0, 1.0, 1.0, scene->model.getRightLane().getProb()));
      s, pvd + MODEL_LANE_PATH_CNT,
      nvgRGBAf(1.0, 1.0, 1.0, scene->model.getRightLane().getProb()));
      s, pvd + MODEL_LANE_PATH_CNT,
      nvgRGBAf(1.0, 1.0, 1.0, scene->model.getRightLane().getProb()));
  
    if(s->sm->updated("radarState")) {
      update_all_track_data(s);
    }
    // Draw vision path
keep keep keep keep replace replace replace keep keep keep keep keep
 ui: refactor model related functions (#2026)

* remove read_model

* remove structs for c-capnp

* remove duplicate #define from modeld

* add function fill_path_points

* fix Indentation

* use MODEL_PATH_DISTANCE instead of 192

* fix type

use validLen

* rename left_path_points&right_path_points to xxx_lane_points 
selfdrive/ui/paint.cc