CGALDotNet icon indicating copy to clipboard operation
CGALDotNet copied to clipboard

Wrong result from CGALIntersections.Intersection?

Open ThomasWeiss opened this issue 2 years ago • 2 comments

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.

ThomasWeiss avatar Jan 02 '23 01:01 ThomasWeiss

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

6ther avatar Mar 26 '24 09:03 6ther

I did not!

ThomasWeiss avatar Mar 26 '24 17:03 ThomasWeiss