Package org.sunflow.core.accel
Class KDTree
java.lang.Object
org.sunflow.core.accel.KDTree
- All Implemented Interfaces:
AccelerationStructure
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuild(PrimitiveList primitives) Construct an acceleration structure for the specified primitive list.voidintersect(Ray r, IntersectionState state) Intersect the specified ray with the geometry in local space.static voidsetDumpMode(boolean dump, String prefix)
-
Constructor Details
-
KDTree
public KDTree() -
KDTree
public KDTree(int maxPrims)
-
-
Method Details
-
setDumpMode
-
build
Description copied from interface:AccelerationStructureConstruct an acceleration structure for the specified primitive list.- Specified by:
buildin interfaceAccelerationStructure- Parameters:
primitives-
-
intersect
Description copied from interface:AccelerationStructureIntersect the specified ray with the geometry in local space. The ray will be provided in local space.- Specified by:
intersectin interfaceAccelerationStructure- Parameters:
r- ray in local spacestate- state to store the intersection into
-