Raytracing
Class KDTree

java.lang.Object
  extended by Raytracing.Accelerator
      extended by Raytracing.KDTree

public class KDTree
extends Accelerator


Field Summary
 BoundingBox bounds
           
 int maxDepth
           
 
Fields inherited from class Raytracing.Accelerator
objects, showTree, valid
 
Constructor Summary
KDTree()
           
 
Method Summary
 void add(Intersectable newObject)
           
 void draw(processing.core.PApplet g)
           
 boolean findNearest(Ray ray)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bounds

public BoundingBox bounds

maxDepth

public int maxDepth
Constructor Detail

KDTree

public KDTree()
Method Detail

validate

public void validate()

add

public void add(Intersectable newObject)
Specified by:
add in class Accelerator

draw

public void draw(processing.core.PApplet g)
Specified by:
draw in class Accelerator

findNearest

public boolean findNearest(Ray ray)
Specified by:
findNearest in class Accelerator