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

This commit is contained in:
Jan Petykiewicz 2020-12-20 20:42:50 -08:00
parent bce3d9f37c
commit cf2413f9e3

View File

@ -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