Ray cone intersection

nabulsr2
Unregistered
 
Post: #1
Hi,

I'm trying to come up with a technique for determining whether a ray intersects a cone. The cone is truncated, i.e. one of the ends does not necessarily have a radius of zero, and the cone is not based at the origin.
I'm having real trouble with this at the moment because I've been unable to locate any really useful resources on the net and there aren't any similar topics on this forum. The best thing I've found so far is the following:-

http://www.bmsc.washington.edu/people/me...drics.html

Which doesn't go into much detail. Can anyone please help?
Quote this message in a reply
Member
Posts: 184
Joined: 2004.07
Post: #2
http://www.geometrictools.com/Intersection.html

The above link (formely Wild Magic) has a ton of source code for doing a variety of intersections, including line/code (to get ray-cone, do line-cone first, and then find where on the line the intersection is.)

Here's how the algorithm works:
http://www.geometrictools.com/Documentat...neCone.pdf
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Need ray-sphere intersection code MattDiamond 23 15,485 Aug 31, 2009 02:28 PM
Last Post: Gengar003
  2d Polygon Intersection bizimCity 6 6,910 Aug 31, 2006 05:29 PM
Last Post: reubert
  Math question: deriving rotation by plane intersection TomorrowPlusX 6 4,097 Jan 24, 2006 07:28 AM
Last Post: TomorrowPlusX
  Ray - cylinder intersection nabulsr2 6 6,431 Mar 21, 2005 03:10 PM
Last Post: nabulsr2
  Intersection with arbitrary solid hamishl 2 2,962 Sep 17, 2004 01:41 PM
Last Post: codemattic