Module raytracer

Class RayContext

java.lang.Object
de.grogra.ray.util.RayContext

public class RayContext extends Object
This class is needed for a correct intersection computation. Because the lack of precision in floating point operations there must be remembered some context information. Additionally it is used to optimize the intersection processing by knowing the former computation context.
Author:
Micha
  • Field Details

    • lastIntersectionPoint

      public final Point3d lastIntersectionPoint
    • excludeObject

      public RTObject excludeObject
  • Constructor Details

    • RayContext

      public RayContext()
  • Method Details

    • initializeContext

      public void initializeContext()
    • pushMaterial

      public void pushMaterial(RTObject object)
    • popMaterial

      public void popMaterial()
    • isLastMaterial

      public boolean isLastMaterial(RTObject object)
    • deleteMaterial

      public int deleteMaterial(RTObject object)
    • insertMaterial

      public void insertMaterial(RTObject object, int index)
    • printMaterials

      public void printMaterials()
    • enteringObject

      public void enteringObject(RTObject object, RTMedium medium)
    • exitingObject

      public void exitingObject(RTObject object)
    • getEnteringIORRation

      public float getEnteringIORRation()
    • getExitingIORRation

      public float getExitingIORRation()
    • getCurrentIOR

      public float getCurrentIOR()