BVHTree

Undocumented in source.

Constructors

this
this(DynamicArray!T objects, uint maxObjectsPerNode, uint maxRecursionDepth, Heuristic splitHeuristic)
Undocumented in source.

Members

Functions

construct
BVHNode!T construct(DynamicArray!T objects, uint rec, uint maxObjectsPerNode, uint maxRecursionDepth, Heuristic splitHeuristic)
Undocumented in source. Be warned that the author may not have intended to support it.
free
void free()
Undocumented in source. Be warned that the author may not have intended to support it.
getHalfMainAxisSplitPlane
SplitPlane getHalfMainAxisSplitPlane(T[] objects, AABB box)
Undocumented in source. Be warned that the author may not have intended to support it.
getSAHCost
float getSAHCost(AABB leftBox, uint numLeftObjects, AABB rightBox, uint numRightObjects, AABB parentBox)
Undocumented in source. Be warned that the author may not have intended to support it.
getSAHSplitPlane
SplitPlane getSAHSplitPlane(T[] objects, AABB box)
Undocumented in source. Be warned that the author may not have intended to support it.
getSurfaceArea
float getSurfaceArea(AABB bbox)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

root
BVHNode!T root;
Undocumented in source.

Meta