org.sunflow.core
Interface AccelerationStructure
- BoundingIntervalHierarchy, KDTree, NullAccelerator, UniformGrid
public interface AccelerationStructure
build
public void build(PrimitiveList primitives)
Construct an acceleration structure for the specified primitive list.
intersect
public void intersect(Ray r,
IntersectionState istate)
Intersect the specified ray with the geometry in local space. The ray
will be provided in local space.
r
- ray in local spaceistate
- state to store the intersection into