opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
osc::BVHNode Class Referencefinal

#include <bvh_node.h>

Public Member Functions

const AABBbounds () const
 
bool is_leaf () const
 
bool is_node () const
 
size_t num_lhs_nodes () const
 
void set_num_lhs_nodes (size_t n)
 
size_t first_prim_offset () const
 

Static Public Member Functions

static BVHNode leaf (const AABB &bounds, size_t first_prim_offset)
 
static BVHNode node (const AABB &bounds, size_t num_lhs_children)
 

Member Function Documentation

◆ bounds()

const AABB & osc::BVHNode::bounds ( ) const
inline

◆ first_prim_offset()

size_t osc::BVHNode::first_prim_offset ( ) const
inline

◆ is_leaf()

bool osc::BVHNode::is_leaf ( ) const
inline

◆ is_node()

bool osc::BVHNode::is_node ( ) const
inline

◆ leaf()

static BVHNode osc::BVHNode::leaf ( const AABB bounds,
size_t  first_prim_offset 
)
inlinestatic

◆ node()

static BVHNode osc::BVHNode::node ( const AABB bounds,
size_t  num_lhs_children 
)
inlinestatic

◆ num_lhs_nodes()

size_t osc::BVHNode::num_lhs_nodes ( ) const
inline

◆ set_num_lhs_nodes()

void osc::BVHNode::set_num_lhs_nodes ( size_t  n)
inline

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