kdTreeAccel::BuildParams Struct Reference

Parameters controlling construction of a kdTreeAccel. More...

#include <kdTreeAccel.h>

List of all members.

Public Member Functions

 BuildParams (SplitPlaneType splitType=SPLIT_PLANE_SAH, SplitAxisType splitAxis=SPLIT_AXIS_ROUND_ROBIN, unsigned minPrimitives=3, unsigned maxDepth=(24), unsigned noThreads=1, bool postCompress=true, real_t costTraversal=1, real_t emptyBias=0.9)

Public Attributes

SplitPlaneType kdSplitPlaneType
 split plane generation method (defaults to SPLIT_PLANE_SAH)
SplitAxisType kdSplitAxisType
 split axis selection method (defaults to SPLIT_AXIS_ROUND_ROBIN)
unsigned kdMinPrimitives
unsigned kdMaxDepth
 maximum depth of tree
unsigned kdNoThreads
 number of threads to use during construction
bool kdPostCompress
real_t kdCostTraversal
 SAH-specific parameters.
real_t kdEmptyBias


Detailed Description

Parameters controlling construction of a kdTreeAccel.

Definition at line 66 of file kdTreeAccel.h.


Constructor & Destructor Documentation

kdTreeAccel::BuildParams::BuildParams ( SplitPlaneType  splitType = SPLIT_PLANE_SAH,
SplitAxisType  splitAxis = SPLIT_AXIS_ROUND_ROBIN,
unsigned  minPrimitives = 3,
unsigned  maxDepth = (24),
unsigned  noThreads = 1,
bool  postCompress = true,
real_t  costTraversal = 1,
real_t  emptyBias = 0.9 
) [inline]

Constructs default kd-Tree parameters

Definition at line 95 of file kdTreeAccel.h.


Member Data Documentation

split plane generation method (defaults to SPLIT_PLANE_SAH)

Definition at line 68 of file kdTreeAccel.h.

split axis selection method (defaults to SPLIT_AXIS_ROUND_ROBIN)

Definition at line 71 of file kdTreeAccel.h.

minimum number of primitives s.t. a leaf cell will automatically be created (below this number, further subdivision either won't help or requires too much memory)

Definition at line 76 of file kdTreeAccel.h.

maximum depth of tree

Definition at line 79 of file kdTreeAccel.h.

number of threads to use during construction

Definition at line 82 of file kdTreeAccel.h.

if true, after construction, will attempt to reorganize memory layout efficiently in memory

Definition at line 86 of file kdTreeAccel.h.

SAH-specific parameters.

Definition at line 89 of file kdTreeAccel.h.


The documentation for this struct was generated from the following file:

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6