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

Overlapping edges drops some vertices #32

Closed
gap777 opened this issue May 30, 2017 · 1 comment
Closed

Overlapping edges drops some vertices #32

gap777 opened this issue May 30, 2017 · 1 comment
Assignees

Comments

@gap777
Copy link

gap777 commented May 30, 2017

When I try to intersect shape1 and shape2, I get something back like shape2, but which is missing vertex 3. I expect the result to be the same shape as shape2.

........0.................
:     /   \              :  <---- shape1
:   /       \            : 
:5/    3     \1          :
:  \   / \   /           :
:   \ /   \ /  <---------:----shape2
:    4     2             :
:........................:
var shape1 = [
          [291.3333333283663,259.3333333333333],
          [291.3333333283663,139.33333333333331],
          [1491.3333333283663,139.33333333333331],
          [1491.3333333283663,259.3333333333333]
        ]

var shape2 = [
          [355.9999999950329,139.33333333333331],
          [420.9999999950329,202.33333333333331],
          [384.3333333283663,237.66666667163372],
          [353.9999999950329,205.33333333333331],
          [330.6666666616996,230.33333332339922],
          [291.3333333283663,197.33333333333331]
        ]

In codepen here https://codepen.io/anon/pen/OmeeLY

@w8r w8r self-assigned this Jun 14, 2017
@w8r
Copy link
Owner

w8r commented Dec 20, 2017

will be fixed in #42, see https://codepen.io/w8r/pen/MrebNZ

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