From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Intersection of a plane and finite line segment in 3D space
Date: Mon, 4 Apr 2011 08:16:04 +0000 (UTC)
Organization: University of Arizona
Lines: 13
Message-ID: <inbuo4$5ef$>
References: <inb318$kcs$> <inb3np$1bs$> <>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1301904964 5583 (4 Apr 2011 08:16:04 GMT)
NNTP-Posting-Date: Mon, 4 Apr 2011 08:16:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2755832
Xref: comp.soft-sys.matlab:719887

Thanks, Rune. Another solution could be the following: 1) check if the ray intersects the triangle, and 2) in case of intersection, check if the intersection point belongs to the line segment defined by two points in 3D.
Rune Allnor <> wrote in message <>...
> On Apr 4, 8:54 am, "Liana " <> wrote:
> > I'm sorry, I should paraphrase my question. What I'm searching is the intersection of the line segment and the triangle (not tetrahedron) in 3D space. I think that's the reason why I get incorrect results. In fact, the triangle belongs to the plane, but it is just a fragment of that plane.
> 1) Find the intersection point p between the line L and
>    the plane P, if such a point exists
> 2) Determine if p belongs to the finite section of L
> 3) Determine if p is located in the interior of the
>    triangle T, given by the points (q,r,s).
> Rune