| |
Blurred Radiance
|
|
Ray-Triangle Intersection
February 2002
For this project it was time to branch out into the world of triangles.
Since all complex models are composed of a collection of triangles, we might
as well learn how to test for ray-triangle intersections.
The first step was to create an isosurface from a 3D scalar field and test
intersections with the triangles of the isosurface. The isosurface I used
was created by an Open Inventor engine subclass called Marching Cubes, and the data was an MRI scan of a
human brain.
To check for all my ray-triangle intersections I used IVTrace, an API for ray casting within an
Open Inventor scene. Once I get a hit I place a sample at the location and
after a while the surface fills in. Notice in most of the pictures on
this page there is a viewing sphere collecting points as well.
The code is not available yet.
|
|
|