remove_colinear_vertices implementation assumes no duplicate vertices, so we need to remove them first
This commit is contained in:
parent
bce3d9f37c
commit
cf2413f9e3
@ -120,7 +120,7 @@ def remove_colinear_vertices(vertices: numpy.ndarray, closed_path: bool = True)
|
|||||||
Returns:
|
Returns:
|
||||||
`vertices` with colinear (superflous) vertices removed.
|
`vertices` with colinear (superflous) vertices removed.
|
||||||
"""
|
"""
|
||||||
vertices = numpy.array(vertices)
|
vertices = remove_duplicate_vertices(vertices)
|
||||||
|
|
||||||
# Check for dx0/dy0 == dx1/dy1
|
# Check for dx0/dy0 == dx1/dy1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user