java.lang.Object
de.grogra.ray.util.RayContext
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
deleteMaterial
(RTObject object) void
enteringObject
(RTObject object, RTMedium medium) void
exitingObject
(RTObject object) float
float
float
void
void
insertMaterial
(RTObject object, int index) boolean
isLastMaterial
(RTObject object) void
void
void
pushMaterial
(RTObject object)
-
Field Details
-
lastIntersectionPoint
-
excludeObject
-
-
Constructor Details
-
RayContext
public RayContext()
-
-
Method Details
-
initializeContext
public void initializeContext() -
pushMaterial
-
popMaterial
public void popMaterial() -
isLastMaterial
-
deleteMaterial
-
insertMaterial
-
printMaterials
public void printMaterials() -
enteringObject
-
exitingObject
-
getEnteringIORRation
public float getEnteringIORRation() -
getExitingIORRation
public float getExitingIORRation() -
getCurrentIOR
public float getCurrentIOR()
-