You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following input makes Python version segfault:
points = [
[2.10229524019, -0.760509508136],
[2.15571376911, -0.752653842118],
[2.00173917352, 0.294373407871],
[1.9483206446, 0.286517741853]
]
holes = [[
[1.9968142935, 0.0247609293562],
[2.02104796235, 0.0283247041864],
[2.08803526014, -0.495188920808],
[2.06380159129, -0.498752695638]
]]
one edge of the hole is very close to contour. I'm not sure whether this input
is correct but it should not segfault.
Original issue reported on code.google.com by dusan.ma...@gmail.com on 2 Dec 2010 at 11:51
The text was updated successfully, but these errors were encountered:
Sorry for the late reply.
I tested the input on the java version, tho it didn't crash the hole can't be
handled because one point seems to be on the edge of the polygon or close
enough to be considered on the edge.
I have forwarded this issue to the maintainer of the Python port.
Original comment by thahlen@gmail.com on 13 Dec 2010 at 11:03
Thomas is correct; one point in the hole is close enough to the edge of the
polygon to be considered on the edge. Holes need to be contained "inside" their
respective polygons!
FYI, this point set does not make the C++ version crash.... but it returns an
incorrect result because of the invalid input; attached is a screenshot.
Original comment by mason.gr...@gmail.com on 15 Dec 2010 at 4:26
Original issue reported on code.google.com by
dusan.ma...@gmail.com
on 2 Dec 2010 at 11:51The text was updated successfully, but these errors were encountered: