[remove_colinear_vertices] treat unclosed paths correctly

This commit is contained in:
jan 2026-03-09 02:38:33 -07:00
commit f154303bef

View file

@ -43,7 +43,7 @@ def remove_colinear_vertices(vertices: ArrayLike, closed_path: bool = True) -> N
Returns: Returns:
`vertices` with colinear (superflous) vertices removed. May be a view into the original array. `vertices` with colinear (superflous) vertices removed. May be a view into the original array.
""" """
vertices = remove_duplicate_vertices(vertices) vertices = remove_duplicate_vertices(vertices, closed_path=closed_path)
# Check for dx0/dy0 == dx1/dy1 # Check for dx0/dy0 == dx1/dy1