Blender V4.3
BVHReferenceCompare Struct Reference

Public Member Functions

 BVHReferenceCompare (int dim, const BVHUnaligned *unaligned_heuristic, const Transform *aligned_space)
 
__forceinline BoundBox get_prim_bounds (const BVHReference &prim) const
 
__forceinline int compare (const BVHReference &ra, const BVHReference &rb) const
 
bool operator() (const BVHReference &ra, const BVHReference &rb)
 

Public Attributes

int dim
 
const BVHUnalignedunaligned_heuristic
 
const Transformaligned_space
 

Detailed Description

Definition at line 19 of file sort.cpp.

Constructor & Destructor Documentation

◆ BVHReferenceCompare()

BVHReferenceCompare::BVHReferenceCompare ( int dim,
const BVHUnaligned * unaligned_heuristic,
const Transform * aligned_space )
inline

Definition at line 25 of file sort.cpp.

Member Function Documentation

◆ compare()

__forceinline int BVHReferenceCompare::compare ( const BVHReference & ra,
const BVHReference & rb ) const
inline

◆ get_prim_bounds()

__forceinline BoundBox BVHReferenceCompare::get_prim_bounds ( const BVHReference & prim) const
inline

◆ operator()()

bool BVHReferenceCompare::operator() ( const BVHReference & ra,
const BVHReference & rb )
inline

Definition at line 77 of file sort.cpp.

References compare().

Member Data Documentation

◆ aligned_space

const Transform* BVHReferenceCompare::aligned_space

Definition at line 23 of file sort.cpp.

Referenced by get_prim_bounds().

◆ dim

int BVHReferenceCompare::dim

Definition at line 21 of file sort.cpp.

Referenced by compare().

◆ unaligned_heuristic

const BVHUnaligned* BVHReferenceCompare::unaligned_heuristic

Definition at line 22 of file sort.cpp.

Referenced by get_prim_bounds().


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