Blender V5.0
BVHReferenceCompare Struct Reference

Public Member Functions

 BVHReferenceCompare (const 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 20 of file sort.cpp.

Constructor & Destructor Documentation

◆ BVHReferenceCompare()

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

Definition at line 26 of file sort.cpp.

References aligned_space, dim, and unaligned_heuristic.

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

Definition at line 33 of file sort.cpp.

References __forceinline, aligned_space, BVHReference::bounds(), and unaligned_heuristic.

Referenced by compare().

◆ operator()()

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

Definition at line 79 of file sort.cpp.

References compare().

Member Data Documentation

◆ aligned_space

const Transform* BVHReferenceCompare::aligned_space

Definition at line 24 of file sort.cpp.

Referenced by BVHReferenceCompare(), and get_prim_bounds().

◆ dim

int BVHReferenceCompare::dim

Definition at line 22 of file sort.cpp.

Referenced by BVHReferenceCompare(), and compare().

◆ unaligned_heuristic

const BVHUnaligned* BVHReferenceCompare::unaligned_heuristic

Definition at line 23 of file sort.cpp.

Referenced by BVHReferenceCompare(), and get_prim_bounds().


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