35 #include <cugar/linalg/vector.h>    49     enum internal_type { kInternal = 0 };
    50     enum leaf_type     { kLeaf     = 1 };
    83     typedef Bvh_node::internal_type internal_type;
    84     typedef Bvh_node::leaf_type     leaf_type;
    94     Bvh_node_3d(
const internal_type type, 
const uint32 child_index, 
const uint32 range_size = 0) : Bvh_node( type, child_index, range_size ) {}
    99     Bvh_node_3d(
const leaf_type type, 
const uint32 leaf_begin, 
const uint32 leaf_end) : Bvh_node( type, leaf_begin, leaf_end ) {}
   108         bbox[0] = 
Vector3f(f0.z, f0.w, f1.x);
   109         bbox[1] = 
Vector3f(f1.y, f1.z, f1.w);
   126     #if defined(CUGAR_DEVICE_COMPILATION)   127         const float4 f0 = __ldg(reinterpret_cast<const float4*>(node));
   128         const float4 f1 = __ldg(reinterpret_cast<const float4*>(node) + 1);
 CUGAR_HOST_DEVICE Bvh_node()
Definition: bvh_node.h:55
 
CUGAR_HOST_DEVICE Bvh_node_3d(const internal_type type, const uint32 child_index, const uint32 range_size=0)
Definition: bvh_node.h:94
 
Definition: bvh_node.h:45
 
Definition: bvh_node.h:80
 
CUGAR_HOST_DEVICE Bvh_node(const leaf_type type, const uint32 leaf_begin, const uint32 leaf_end)
Definition: bvh_node.h:65
 
CUGAR_HOST_DEVICE Bvh_node_3d()
Definition: bvh_node.h:89
 
Define CUDA based scan primitives. 
 
CUGAR_HOST_DEVICE Bvh_node(const internal_type type, const uint32 child_index, const uint32 range_size=0)
Definition: bvh_node.h:60
 
CUGAR_HOST_DEVICE Bvh_node & operator=(const Bintree_node< leaf_range_tag > &base)
Definition: bvh_node.h:70
 
Defines an axis-aligned bounding box class. 
 
static CUGAR_HOST_DEVICE Bvh_node_3d load_ldg(const Bvh_node_3d *node)
Definition: bvh_node.h:124
 
CUGAR_HOST_DEVICE Bvh_node_3d(const leaf_type type, const uint32 leaf_begin, const uint32 leaf_end)
Definition: bvh_node.h:99
 
Define a vector_view POD type and plain_view() for std::vector. 
Definition: diff.h:38
 
Definition: bintree_node.h:60
 
struct CUGAR_ALIGN_BEGIN(8) Bintree_node< leaf_range_tag >
Definition: bintree_node.h:155
 
Definition: bintree_node.h:63
 
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Out binary_cast(const In in)
Definition: types.h:288
 
CUGAR_HOST_DEVICE Bvh_node_3d(const float4 f0, const float4 f1)
Definition: bvh_node.h:104