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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdeleteMaterial(RTObject object) voidenteringObject(RTObject object, RTMedium medium) voidexitingObject(RTObject object) floatfloatfloatvoidvoidinsertMaterial(RTObject object, int index) booleanisLastMaterial(RTObject object) voidvoidvoidpushMaterial(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()
-