[remove_colinear_vertices] treat unclosed paths correctly
This commit is contained in:
parent
5596e2b1af
commit
f154303bef
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue