FL.helpers.interpolation.remove_axis_from_point_list

FL.helpers.interpolation.remove_axis_from_point_list(seq: list[Point], interpolation: float) None

Adjust the length of a list in place by halving it (= removing an MM axis). The interpolation factor will be used to interpolate the remaining points.

Parameters:
  • seq (list[Point]) – The list of points to be adjusted.

  • interpolation (float, optional) – The interpolation factor. Defaults to 0.0.

Raises:

ValueError – If the list has an odd number of elements.