typemytype / booleanOperations

Boolean operations on paths
MIT License
39 stars 18 forks source link

ignore zero area contours only when pyclipper cannot add them #51

Closed typemytype closed 5 years ago

typemytype commented 5 years ago

this solves zero area self intersection paths, but still ignores reall zero area paths like lines

50

48

typemytype commented 5 years ago

test fails cause difference and xor are NOT working properly (testing now)

typemytype commented 5 years ago

all fixed now all test cases are working now @anthrotype could you review and merge, this is maybe a change that can have a new release

typemytype commented 5 years ago

I dont now what adding a check for bounds does for performance... but since the last version of pyclipper this raises an error. Previous versions simple ignores empty clipper paths.

typemytype commented 5 years ago

a quick performance test: https://gist.github.com/typemytype/4ad64ad5d4f72b6662d74f418cd67c44

the timeit result are to close to each other (they both win once in a while) to speak of a performance dip.

anthrotype commented 5 years ago

Thanks @typemytype