KiCad PCB EDA Suite
Loading...
Searching...
No Matches
LinearBVHNode Struct Reference

#include <bvh_pbrt.h>

Public Attributes

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

Detailed Description

Definition at line 82 of file bvh_pbrt.h.

Member Data Documentation

◆ [union]

union { ... } LinearBVHNode

◆ axis

uint8_t LinearBVHNode::axis

interior node: xyz

Definition at line 96 of file bvh_pbrt.h.

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

◆ bounds

◆ nPrimitives

uint16_t LinearBVHNode::nPrimitives

◆ pad

uint8_t LinearBVHNode::pad[1]

ensure 32 byte total size

Definition at line 97 of file bvh_pbrt.h.

◆ primitivesOffset

int LinearBVHNode::primitivesOffset

◆ secondChildOffset

int LinearBVHNode::secondChildOffset

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