KiCad PCB EDA Suite
LinearBVHNode Struct Reference

#include <cbvh_pbrt.h>

Public Attributes

CBBOX bounds
 
union {
   int   primitivesOffset
 leaf More...
 
   int   secondChildOffset
 interior More...
 
}; 
 
uint16_t nPrimitives
 0 -> interior node More...
 
uint8_t axis
 interior node: xyz More...
 
uint8_t pad [1]
 ensure 32 byte total size More...
 

Detailed Description

Definition at line 82 of file cbvh_pbrt.h.

Member Data Documentation

union { ... }
uint8_t LinearBVHNode::axis

interior node: xyz

Definition at line 96 of file cbvh_pbrt.h.

Referenced by CBVH_PBRT::CBVH_PBRT(), CBVH_PBRT::flattenBVHTree(), CBVH_PBRT::Intersect(), and CBVH_PBRT::IntersectP().

CBBOX LinearBVHNode::bounds
uint16_t LinearBVHNode::nPrimitives

0 -> interior node

Definition at line 95 of file cbvh_pbrt.h.

Referenced by CBVH_PBRT::CBVH_PBRT(), CBVH_PBRT::flattenBVHTree(), CBVH_PBRT::Intersect(), and CBVH_PBRT::IntersectP().

uint8_t LinearBVHNode::pad[1]

ensure 32 byte total size

Definition at line 97 of file cbvh_pbrt.h.

int LinearBVHNode::primitivesOffset
int LinearBVHNode::secondChildOffset

interior

Definition at line 91 of file cbvh_pbrt.h.

Referenced by CBVH_PBRT::flattenBVHTree(), CBVH_PBRT::Intersect(), and CBVH_PBRT::IntersectP().


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