realbasic-games
[Top] [All Lists]

Re: line segment/triangle intersection in 3D

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: line segment/triangle intersection in 3D
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Mon, 22 Aug 2005 09:22:53 -0600
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <a06200700bf2ac5f97ad1 at [66 dot 81 dot 214 dot 250]> <a06200715bf2b9c5dd723 at [10 dot 0 dot 1 dot 2]> <a06200700bf2c285d3d77 at [66 dot 81 dot 63 dot 195]>
At 5:27 PM -0700 8/19/05, Joe Raffanti wrote:

Thanks for all the feedback, everyone.
I think this is what you were referring to in Renegades:

Function PlaneIntersection(planeNormal As Vector3D, planeD As Double, p0 As Vector3D, p1 As Vector3D) As Vector3D

No, that just fines the intersection of a line with a plane -- which is *part* of finding a line/triangle intersection, but only part.

Lo posted code that should do what you need; I suggest just using that.

If you ever do need to intersect a line with a plane, bring this up again and I'll explain how to define a plane for use with this function.

Best,
- Joe

--
Joe Strout                          REAL Software, Inc.

Vote for REALbasic (twice!) in the LinuxWorld Reader's Choice Awards:
http://linux.sys-con.com/general/readerschoice.htm
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>