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

Public Member Functions

void InitLeaf (int first, int n, const BBOX_3D &b)
 
void InitInterior (int axis, BVHBuildNode *c0, BVHBuildNode *c1)
 

Public Attributes

BBOX_3D bounds
 
BVHBuildNodechildren [2]
 
int splitAxis
 
int firstPrimOffset
 
int nPrimitives
 

Detailed Description

Definition at line 106 of file bvh_pbrt.cpp.

Member Function Documentation

◆ InitInterior()

void BVHBuildNode::InitInterior ( int  axis,
BVHBuildNode c0,
BVHBuildNode c1 
)
inline

◆ InitLeaf()

void BVHBuildNode::InitLeaf ( int  first,
int  n,
const BBOX_3D b 
)
inline

Definition at line 109 of file bvh_pbrt.cpp.

References bounds, children, firstPrimOffset, and nPrimitives.

Referenced by BVH_PBRT::emitLBVH(), and BVH_PBRT::recursiveBuild().

Member Data Documentation

◆ bounds

◆ children

◆ firstPrimOffset

int BVHBuildNode::firstPrimOffset

◆ nPrimitives

◆ splitAxis

int BVHBuildNode::splitAxis

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