org.bouncycastle.graphics.rt.objects
Class BvTree
java.lang.Object
|
+--org.bouncycastle.graphics.rt.Renderable
|
+--org.bouncycastle.graphics.rt.objects.BvTree
- All Implemented Interfaces:
- ColorCalculator, Illuminated, Traceable
- public class BvTree
- extends Renderable
- implements Illuminated
A BvTree.
We use this as it guarantees that an object will only be
tested once per ray, without the need for mail boxes and the like.
It's other advantage is, because it does a 3 way split at each level,
it doesn't result in duplicated objects.
Methods inherited from class org.bouncycastle.graphics.rt.Renderable |
createObjectSpaceRay, getColor, getColor, getShader, isSelfShadowing, processObject, processParameters, readObject, setColor, setColor, setSelfShadowing, setShader, toObjectSpace, toObjectSpace, transform, transformNormal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BvTree
public BvTree()
BvTree
public BvTree(Aggregate objs)
BvTree
public BvTree(Partitionable[] objs)
visibleLights
public LightDataList visibleLights(Hit hit)
- Specified by:
visibleLights
in interface Illuminated
isIntersected
public boolean isIntersected(Ray r)
- Specified by:
isIntersected
in interface Traceable
- Overrides:
isIntersected
in class Renderable
intersections
public HitList intersections(Ray r)
- Specified by:
intersections
in interface Traceable
isShadowing
public boolean isShadowing(Ray r)
- Specified by:
isShadowing
in interface Traceable
- Overrides:
isShadowing
in class Renderable