1
Vote

Plane/segment intersection problem #2

description

Hi,
 
another issue:
 
[Test]
public void test() {
Sharp3D.Math.Geometry3D.Plane plane = new Sharp3D.Math.Geometry3D.Plane(Vector3F.ZAxis, -3e6f);
 
Vector3F p1 = new Vector3F(161746.9f, 0.00571176f, 3195273f);
Vector3F p2 = new Vector3F(279734.7f, 0.004676462f, 2649951f);
 
Sharp3D.Math.Geometry3D.Segment segment1 = new Sharp3D.Math.Geometry3D.Segment(p1, p2);
 
Sharp3D.Math.Geometry3D.IntersectionPair intersection = Sharp3D.Math.Geometry3D.IntersectionMethods.Intersects(segment1, plane);
 
Assert.IsFalse(intersection.IntersectionOccurred);
}
 
There should be no intersection with the segment because its end points have a positive z.

comments