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

values not intersecting #7

Open
nxgraphics opened this issue Sep 6, 2016 · 1 comment
Open

values not intersecting #7

nxgraphics opened this issue Sep 6, 2016 · 1 comment

Comments

@nxgraphics
Copy link

Hi !
i had a question concerning the intersections,
if the clipper is the same size as the source polygon, why doesnt it return the on-line intersection ?
var src = [[0,0], [100,0], [100,100], [0,100]];
var clipper = [[0,0] , [100,0] , [100,100], [0,100]];
it returns null, could you comfirm the behaviour ? thx

@w8r
Copy link
Owner

w8r commented Sep 6, 2016

I confirm that, the only thing that can be done here is a trivial string equality check. Greiner-Hormann algorithm is not good at overlapping edges, it's a degenerate case. You can also try https://github.com/w8r/martinez algorithm

Kind regards,
Alexander Milevski

On 06 Sep 2016, at 19:05, Stephane Kyles [email protected] wrote:

Hi !
i had a question concerning the intersections,
if the clipper is the same size as the source polygon, why doesnt it return the on-line intersection ?
var src = [[0,0], [100,0], [100,100], [0,100]];
var clipper = [[0,0] , [100,0] , [100,100], [0,100]];
it returns null, could you comfirm the behaviour ? thx


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

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