CGALDotNet
CGALDotNet copied to clipboard
Wrong result from CGALIntersections.Intersection?
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
.
I also try this. And the result is same as yours. Did you find out what causes the wrong result from CGALIntersections.Intersection?
I did not!