Closed typemytype closed 5 years ago
There haven’t been new releases of pyclipper lately. What’s the input that triggers that?
I suppose this has to do with the zero-area paths, following https://github.com/typemytype/booleanOperations/pull/49
had some time to look at it: this traceback is raised when there are no contours given... like in a space or a glyph with only components.
we urgently needs test cases:
from booleanOperations.booleanOperationManager import clipExecute
testSubjectContours = [
[[(100, 100), (200, 200), (200, 100)]],
[[(100, 100), (200, 200)]],
[[], []],
[[]],
[]
]
for testContour in testSubjectContours:
try:
r = clipExecute(testContour, [], "union")
print("succes:", testContour)
except Exception as e:
print("failed:", testContour)
print(e)
it should not run clipExecute
whenever the subjectContour is and empty list, even if its a a empty list of empty segments
with pyclipper 1.0.6 the last test with an empty subjectContour works fine... Im not sure if this is an issue of pyclipper of the clipper library
Fixed by #51
seems like it fails with the current version of pyclipper