simplify.py icon indicating copy to clipboard operation
simplify.py copied to clipboard

Wrong work if y data are equal

Open tantra35 opened this issue 11 years ago • 0 comments

If we ran follow script

import simplify

print simplify.simplify_points([{'y': 0, 'x': 15}, {'y': 0.6, 'x': 16}, {'y': 0, 'x': 17}], 0.5)

we got:

[{'y': 0, 'x': 15}, {'y': 0.6, 'x': 16}, {'y': 0, 'x': 17}]

But this is wrong, we must get follow result:

[{'y': 0, 'x': 15}, {'y': 0, 'x': 17}]

tantra35 avatar Feb 03 '15 22:02 tantra35