remove_colinear_vertices implementation assumes no duplicate vertices, so we need to remove them first

nolock
Jan Petykiewicz 3 years ago
parent bce3d9f37c
commit cf2413f9e3

@ -120,7 +120,7 @@ def remove_colinear_vertices(vertices: numpy.ndarray, closed_path: bool = True)
Returns:
`vertices` with colinear (superflous) vertices removed.
"""
vertices = numpy.array(vertices)
vertices = remove_duplicate_vertices(vertices)
# Check for dx0/dy0 == dx1/dy1

Loading…
Cancel
Save