Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

union data not simplify? #139

Open
ganluo960214 opened this issue Dec 28, 2021 · 2 comments
Open

union data not simplify? #139

ganluo960214 opened this issue Dec 28, 2021 · 2 comments

Comments

@ganluo960214
Copy link

p1:
[
    [
        [0,0],
        [1,0],
        [1,1],
        [0,1],
        [0,0],
    ]
],
p2:
[
    [
        [1,0],
        [2,0],
        [2,1],
        [1,1],
        [1,0]
    ]
]
union:
[
  [
    [ 0, 0 ], [ 1, 0 ],
    [ 2, 0 ], [ 2, 1 ],
    [ 1, 1 ], [ 0, 1 ],
    [ 0, 0 ]
  ]
]
union(simplify):
[
  [
    [ 0, 0 ],
    [ 2, 0 ], [ 2, 1 ],
              [ 0, 1 ],
    [ 0, 0 ]
  ]
]

@rowanwins
Copy link
Collaborator

Unfortunately it's not really clear what this issue is about

@jmb20
Copy link

jmb20 commented Dec 12, 2022

I think @ganluo960214 asks why the Union operation does not remove vertices that are collinear and on the edges of the union of polygons, i.e., why (1,0) and (1,1) are not removed from the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants