Py2D icon indicating copy to clipboard operation
Py2D copied to clipboard

Polygon.py convex_decompose function typo

Open Canonelis opened this issue 3 years ago • 0 comments

line 701 i_extend2 = next( ( i for i in itertools.chain((i_start,-1,-1), range(len(p)-1,i_start, -1)) if not point_orientation( p[i-1], p[i], p[(i+1) % len(p)] ) ) ) should be i_extend2 = next( ( i for i in itertools.chain(range(i_start,-1,-1), range(len(p)-1,i_start, -1)) if not point_orientation( p[i-1], p[i], p[(i+1) % len(p)] ) ) )

Canonelis avatar Feb 09 '22 09:02 Canonelis