We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hi,
I am having issue with polygons merging.
If a create a bunch of polygons as:
# Make a bunch of rectangles tot = [] tot.append(np.array([[ -5., -100.], [ 5., -100.], [ 5., 100.], [ -5., 100.]])) tot.append(np.array([[ 45., -100.], [ 55., -100.], [ 55., 100.], [ 45., 100.]])) tot.append(np.array([[-100., -5.], [ 100., -5.], [ 100., 5.], [-100., 5.]])) tot.append(np.array([[-100., 45.], [ 100., 45.], [ 100., 55.], [-100., 55.]]))
I obtain this:
If I "merge" the polygons to have only one left as:
# Execute the merge pc = pyclipr.Clipper() pc.scaleFactor = int(1000) pc.addPaths(tot, pyclipr.Subject) tot = pc.execute(pyclipr.Union, pyclipr.FillRule.EvenOdd)
I get this:
You can remark the holes at the intersections of the polygons. I was expected something like this:
Which is something I get by using Klayout and click on: edit -> selection -> merge
If you can help me to get the same result as with Klayout that would be really helpful.
The text was updated successfully, but these errors were encountered:
You probably want FillRule.NonZero
See the docs here: https://www.angusj.com/clipper2/Docs/Units/Clipper/Types/FillRule.htm
Sorry, something went wrong.
Unfortunately no. When I use FillRule.NonZero, I got:
FillRule.NonZero
Is is, in fact, a known issue, see this discussion: AngusJohnson/Clipper2#820.
issue
No branches or pull requests
Hi,
I am having issue with polygons merging.
If a create a bunch of polygons as:
I obtain this:
If I "merge" the polygons to have only one left as:
I get this:
You can remark the holes at the intersections of the polygons.
I was expected something like this:
Which is something I get by using Klayout and click on: edit -> selection -> merge
If you can help me to get the same result as with Klayout that would be really helpful.
The text was updated successfully, but these errors were encountered: