compute_recursive_midpoints#

ripplemapper.contour.compute_recursive_midpoints(poly_a: ndarray, poly_b: ndarray, iterations: int) ndarray[source]#

Compute midpoints between two contours recursively, addressing the shape mismatch.

Parameters:
  • poly_a (np.ndarray) – Vertices of the first contour.

  • poly_b (np.ndarray) – Vertices of the second contour.

  • iterations (int) – Number of iterations for recursion.

Returns:

Midpoint vertices after the final iteration.

Return type:

np.ndarray