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

Wrong result from CGALIntersections.Intersection? #12

Open
ThomasWeiss opened this issue Jan 2, 2023 · 2 comments
Open

Wrong result from CGALIntersections.Intersection? #12

ThomasWeiss opened this issue Jan 2, 2023 · 2 comments

Comments

@ThomasWeiss
Copy link

My test:

var s1 = new Segment2d(0, 0, 1, 1);
var s2 = new Segment2d(0, 1, 1, 0);
var i = CGALIntersections.Intersection(s1, s2);

Expecting to find a point intersection at coordinates 0.5,0.5 but instead i.Type is SEGMENT2 and i.Segment is A=0,0 B=0,0.

@6ther
Copy link

6ther commented Mar 26, 2024

I also try this.
And the result is same as yours.
Did you find out what causes the wrong result from CGALIntersections.Intersection?

@ThomasWeiss
Copy link
Author

I did not!

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