public class KDTree extends Object implements AccelerationStructure
Modifier and Type | Method and Description |
---|---|
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,
String prefix) |
public static void setDumpMode(boolean dump, 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 intoCopyright © 2018. All rights reserved.