de.grogra.ray.intersection
Interface IntersectionProcessor

All Known Implementing Classes:
DefaultIntersectionProcessor, OctreeIntersectionProcessor

public interface IntersectionProcessor

An implementation of this interface encapsulates the algorithm of intersection determination of a single ray in a 3D-scene. Mostly additional reference data structures are used to accelarate this calculation.

Author:
Micha

Method Summary
 void cleanupProcessing()
           
 boolean getFirstIntersectionDescription(Ray ray, RayContext context, IntersectionDescription desc)
           
 float getFirstIntersectionT(Ray ray, RayContext context)
           
 void prepareProcessing(RTScene sceneGraph)
           
 

Method Detail

cleanupProcessing

void cleanupProcessing()

getFirstIntersectionDescription

boolean getFirstIntersectionDescription(Ray ray,
                                        RayContext context,
                                        IntersectionDescription desc)

getFirstIntersectionT

float getFirstIntersectionT(Ray ray,
                            RayContext context)

prepareProcessing

void prepareProcessing(RTScene sceneGraph)