KiCad PCB EDA Suite
BVHPrimitiveInfo Struct Reference

Public Member Functions

 BVHPrimitiveInfo ()
 
 BVHPrimitiveInfo (int aPrimitiveNumber, const CBBOX &aBounds)
 

Public Attributes

int primitiveNumber
 
CBBOX bounds
 
SFVEC3F centroid
 

Detailed Description

Definition at line 84 of file cbvh_pbrt.cpp.

Constructor & Destructor Documentation

◆ BVHPrimitiveInfo() [1/2]

BVHPrimitiveInfo::BVHPrimitiveInfo ( )
inline

Definition at line 86 of file cbvh_pbrt.cpp.

87  {
88  primitiveNumber = 0;
89  bounds.Reset();
90  centroid = SFVEC3F( 0.0f );
91  }
glm::vec3 SFVEC3F
Definition: xv3d_types.h:47
void Reset()
Function Reset reset the bounding box to zero and de-initialized it.
Definition: cbbox.cpp:98

References bounds, centroid, primitiveNumber, and CBBOX::Reset().

◆ BVHPrimitiveInfo() [2/2]

BVHPrimitiveInfo::BVHPrimitiveInfo ( int  aPrimitiveNumber,
const CBBOX aBounds 
)
inline

Definition at line 93 of file cbvh_pbrt.cpp.

93  :
94  primitiveNumber( aPrimitiveNumber ),
95  bounds( aBounds ),
96  centroid( .5f * aBounds.Min() + .5f * aBounds.Max() ) {}
const SFVEC3F & Max() const
Function Max return the maximum vertex pointer.
Definition: cbbox.h:212
const SFVEC3F & Min() const
Function Min return the minimun vertex pointer.
Definition: cbbox.h:205

Member Data Documentation

◆ bounds

CBBOX BVHPrimitiveInfo::bounds

Definition at line 99 of file cbvh_pbrt.cpp.

Referenced by BVHPrimitiveInfo().

◆ centroid

SFVEC3F BVHPrimitiveInfo::centroid

◆ primitiveNumber

int BVHPrimitiveInfo::primitiveNumber

Definition at line 98 of file cbvh_pbrt.cpp.

Referenced by BVHPrimitiveInfo().


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