def _construct_continuous_line(self, points, line_color, line_type):
        """
        We process straight line to several pieces by default, which can be optimized through overriding this function
        Lateral: left[-1/2 * width] or right[1/2 * width]
        """
        for p_1_index, p_1 in enumerate(points[:-1]):
            p_2 = points[p_1_index + 1]
            node_path_list = self._construct_lane_line_segment(p_1, p_2, line_color, line_type)
            self._node_path_list.extend(node_path_list)

        We process straight line to several pieces by default, which can be optimized through overriding this function
        Lateral: left[-1/2 * width] or right[1/2 * width]
        
metadrive/component/pgblock/pg_block.py