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 { ... } LinearBVHNode::@4

◆ axis

uint8_t LinearBVHNode::axis

interior node: xyz

Definition at line 96 of file bvh_pbrt.h.

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

◆ bounds

BBOX_3D LinearBVHNode::bounds

◆ nPrimitives

uint16_t LinearBVHNode::nPrimitives

0 -> interior node

Definition at line 95 of file bvh_pbrt.h.

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

◆ 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

interior

Definition at line 91 of file bvh_pbrt.h.

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


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