48 const float ca = ra_bounds.
min[
dim] + ra_bounds.
max[
dim];
49 const float cb = rb_bounds.
min[
dim] + rb_bounds.
max[
dim];
98 int start = job_start;
100 bool have_work = (start < end);
102 const int count = job_end - job_start;
115 const int center = (
left + right) >> 1;
139 }
while (
left <= right);
174 const int count = end - start;
BMesh const char void * data
static DBVT_INLINE btDbvtNode * sort(btDbvtNode *n, btDbvtNode *&r)
__forceinline int prim_type() const
__forceinline int prim_object() const
__forceinline const BoundBox & bounds() const
__forceinline int prim_index() const
#define CCL_NAMESPACE_END
void bvh_reference_sort(const int start, const int end, BVHReference *data, const int dim, const BVHUnaligned *unaligned_heuristic, const Transform *aligned_space)
static CCL_NAMESPACE_BEGIN const int BVH_SORT_THRESHOLD
static void bvh_reference_sort_threaded(TaskPool *task_pool, BVHReference *data, const int job_start, const int job_end, const BVHReferenceCompare &compare)
const Transform * aligned_space
const BVHUnaligned * unaligned_heuristic
BVHReferenceCompare(const int dim, const BVHUnaligned *unaligned_heuristic, const Transform *aligned_space)
__forceinline BoundBox get_prim_bounds(const BVHReference &prim) const
__forceinline int compare(const BVHReference &ra, const BVHReference &rb) const
bool operator()(const BVHReference &ra, const BVHReference &rb)