Build type to wrap data required for recursive building of KDTree nodes when using a KDTreeFactory ba...
Definition: KDTreeBuildType.h:11
KDTreeNode * parent
The parent node.
Definition: KDTreeBuildType.h:19
vector< Primitive * > primitives
Primitives to build KDTree node from.
Definition: KDTreeBuildType.h:30
int index
Index of node at current depth.
Definition: KDTreeBuildType.h:40
KDTreeBuildType()
Default constructor for KDTreeBuildType.
Definition: KDTreeBuildType.h:47
bool left
True if given node is a left child, false otherwise. Notice root node is not left nor right,...
Definition: KDTreeBuildType.h:25
KDTreeBuildType(KDTreeNode *parent, bool const left, vector< Primitive * > &primitives, int const depth, int const index)
Constructor for KDTreeBuildType with attributes as arguments.
Definition: KDTreeBuildType.h:62
int depth
Depth of node.
Definition: KDTreeBuildType.h:35
Class representing a KDTree node.
Definition: KDTreeNode.h:9