|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sunflow.core.accel.KDTree
public class KDTree
Constructor Summary | |
---|---|
KDTree()
|
|
KDTree(int maxPrims)
|
Method Summary | |
---|---|
void |
build(PrimitiveList primitives)
Construct an acceleration structure for the specified primitive list. |
void |
intersect(Ray r,
IntersectionState state)
Intersect the specified ray with the geometry in local space. |
static void |
setDumpMode(boolean dump,
java.lang.String prefix)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KDTree()
public KDTree(int maxPrims)
Method Detail |
---|
public static void setDumpMode(boolean dump, java.lang.String prefix)
public void build(PrimitiveList primitives)
AccelerationStructure
build
in interface AccelerationStructure
public void intersect(Ray r, IntersectionState state)
AccelerationStructure
intersect
in interface AccelerationStructure
r
- ray in local spacestate
- state to store the intersection into
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |