Botffy / polyskel

Straight skeleton implementation in Python
GNU Lesser General Public License v3.0
79 stars 21 forks source link

Incorrect result for a symmetrical polygon with a hole #19

Closed vvoovv closed 4 years ago

vvoovv commented 4 years ago

I run _demo.py holefailed.txt hole_failed.txt and got: image

Botffy commented 4 years ago

Oh my god, that doesn't look very nice, does it.

Sorry about that, and thanks for reporting it. There's always trouble with highly symmetrical concave polygons. I can't promise a speedy fix, but I'll try to look into it.

(PRs are always welcome)

Botffy commented 4 years ago

Fixed! Sorry about the delay. I explained the issue and the fix in the commit message.

(I feel like such a genius when I fix a bug caused by my earlier idiocy)