View Full Version : Finding intersection point of vector and mesh

11 November 2005, 06:48 AM
Hey there. Another quandry here.

Say I've got a point in space, and vector, and I want to find the place where that imaginary line intersects with a given mesh (if it does at all.)

11 November 2005, 07:03 AM
With a point, line, or surface of that mesh?

11 November 2005, 11:13 PM
The point where it passes through the surface. Is that was you were asking?

Kind of like, I want to shoot a ray off (metaphorically) and then find out how many objects it hits, if any, how many surfaces it intersects on those objects, and the world coordinates of the places it hits.

By how many surfaces it intersects, I mean if intersects one closed object, it should hit a surface going in and coming out. If it hit a torus edgwise, it should return 4 hits, etc.

11 November 2005, 12:36 AM
there are a couple of ways to do this, but they require the API to access them. you can also download two plugins on highend3d that do this (rayhittest, and rayIntersect).


11 November 2005, 01:48 AM
Hey thanks, I'll look into those plugins, that's probably all I need.

If anyone has an idea on even to cheat this in mel I'd still like to hear it, but I thought it might be an api thing.

Thanks again!

CGTalk Moderation
11 November 2005, 01:48 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.