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 with Non-Intersection Polygons #10

Open
tp opened this issue Apr 21, 2017 · 1 comment
Open

Union with Non-Intersection Polygons #10

tp opened this issue Apr 21, 2017 · 1 comment

Comments

@tp
Copy link

tp commented Apr 21, 2017

Probably related to #9:

union of non-intersecting polygons returns null here, but returns the input polygons with "martinez".

> m.union([ pencilPolygon.map(p2arr) ], [ eraserPolygon.map(p2arr) ]);
[ [ [ 0.11612903225806452, 0.33455451259745367 ],
    [ 0.11720430107526882, 0.33455451259745367 ],
    [ 0.11720430107526882, 0.33064826259745367 ],
    [ 0.11612903225806452, 0.33064826259745367 ] ],
  [ [ 0.14516129032258066, 0.4109600939072074 ],
    [ 0.14623655913978495, 0.4109600939072074 ],
    [ 0.14623655913978495, 0.3718975939072074 ],
    [ 0.14516129032258066, 0.3718975939072074 ] ] ]
> gh.union(pencilPolygon, eraserPolygon)
null
@w8r
Copy link
Owner

w8r commented Sep 22, 2017

I don't know, logic probably requires that it would return both polygons

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

No branches or pull requests

2 participants