35 #include <cugar/basic/vector.h> 36 #include <cugar/linalg/vector.h> 41 #include <cugar/basic/cuda/timer.h> 42 #include <thrust/device_vector.h> 108 node_vector* nodes = NULL,
109 index_vector* index = NULL,
110 range_vector* leaf_ranges = NULL,
111 index_vector* leaf_pointers = NULL,
112 index_vector* parents = NULL,
113 index_vector* skip_nodes = NULL,
114 range_vector* node_ranges = NULL) :
116 m_leaf_ranges( leaf_ranges ),
117 m_leaf_pointers( leaf_pointers ),
118 m_parents( parents ),
119 m_skip_nodes( skip_nodes ),
120 m_node_ranges( node_ranges ),
123 void set_nodes(node_vector* nodes) { m_nodes = nodes; }
124 void set_index(index_vector* index) { m_index = index; }
125 void set_parents(index_vector* parents) { m_parents = parents; }
126 void set_skip_nodes(index_vector* skip_nodes) { m_skip_nodes = skip_nodes; }
127 void set_leaf_pointers(index_vector* leaf_pointers) { m_leaf_pointers = leaf_pointers; }
128 void set_leaf_ranges(range_vector* leaf_ranges) { m_leaf_ranges = leaf_ranges; }
129 void set_node_ranges(range_vector* node_ranges) { m_node_ranges = node_ranges; }
137 template <
typename Iterator>
140 const Iterator points_begin,
141 const Iterator points_end,
142 const uint32 max_leaf_size,
143 Stats* stats = NULL);
145 node_vector* m_nodes;
146 range_vector* m_node_ranges;
147 range_vector* m_leaf_ranges;
148 index_vector* m_leaf_pointers;
149 index_vector* m_parents;
150 index_vector* m_skip_nodes;
151 index_vector* m_index;
167 #include <cugar/bvh/cuda/lbvh_builder_inline.h>
Entry point to the generic Bounding Volume Hierarchy library.
Defines the context class for the binary tree generate() function.
Definition: bvh_node.h:45
Define CUDA based scan primitives.
Defines an axis-aligned bounding box class.
Define a vector_view POD type and plain_view() for std::vector.
Definition: diff.h:38
Definition: lbvh_builder.h:51
Definition: lbvh_builder.h:98
Definition: radixtree_context.h:49
LBVH_builder(node_vector *nodes=NULL, index_vector *index=NULL, range_vector *leaf_ranges=NULL, index_vector *leaf_pointers=NULL, index_vector *parents=NULL, index_vector *skip_nodes=NULL, range_vector *node_ranges=NULL)
Definition: lbvh_builder.h:107
Defines a simple binary tree context implementation to be used with the generate_radix_tree() functio...