Blender V4.3
BVHUnaligned Class Reference

#include <unaligned.h>

Public Member Functions

 BVHUnaligned (const vector< Object * > &objects)
 
Transform compute_aligned_space (const BVHObjectBinning &range, const BVHReference *references) const
 
Transform compute_aligned_space (const BVHRange &range, const BVHReference *references) const
 
bool compute_aligned_space (const BVHReference &ref, Transform *aligned_space) const
 
BoundBox compute_aligned_prim_boundbox (const BVHReference &prim, const Transform &aligned_space) const
 
BoundBox compute_aligned_boundbox (const BVHObjectBinning &range, const BVHReference *references, const Transform &aligned_space, BoundBox *cent_bounds=NULL) const
 
BoundBox compute_aligned_boundbox (const BVHRange &range, const BVHReference *references, const Transform &aligned_space, BoundBox *cent_bounds=NULL) const
 

Static Public Member Functions

static Transform compute_node_transform (const BoundBox &bounds, const Transform &aligned_space)
 

Protected Attributes

const vector< Object * > & objects_
 

Detailed Description

Definition at line 20 of file unaligned.h.

Constructor & Destructor Documentation

◆ BVHUnaligned()

CCL_NAMESPACE_BEGIN BVHUnaligned::BVHUnaligned ( const vector< Object * > & objects)

Definition at line 18 of file unaligned.cpp.

Member Function Documentation

◆ compute_aligned_boundbox() [1/2]

BoundBox BVHUnaligned::compute_aligned_boundbox ( const BVHObjectBinning & range,
const BVHReference * references,
const Transform & aligned_space,
BoundBox * cent_bounds = NULL ) const

◆ compute_aligned_boundbox() [2/2]

BoundBox BVHUnaligned::compute_aligned_boundbox ( const BVHRange & range,
const BVHReference * references,
const Transform & aligned_space,
BoundBox * cent_bounds = NULL ) const

◆ compute_aligned_prim_boundbox()

◆ compute_aligned_space() [1/3]

Transform BVHUnaligned::compute_aligned_space ( const BVHObjectBinning & range,
const BVHReference * references ) const

◆ compute_aligned_space() [2/3]

Transform BVHUnaligned::compute_aligned_space ( const BVHRange & range,
const BVHReference * references ) const

Definition at line 36 of file unaligned.cpp.

References compute_aligned_space(), and transform_identity().

◆ compute_aligned_space() [3/3]

◆ compute_node_transform()

Transform BVHUnaligned::compute_node_transform ( const BoundBox & bounds,
const Transform & aligned_space )
static

Definition at line 138 of file unaligned.cpp.

References bounds(), max, transform_scale(), float3::x, Transform::x, float3::y, and float3::z.

Referenced by BVH2::pack_unaligned_node().

Member Data Documentation

◆ objects_

const vector<Object *>& BVHUnaligned::objects_
protected

Definition at line 56 of file unaligned.h.

Referenced by compute_aligned_prim_boundbox(), and compute_aligned_space().


The documentation for this class was generated from the following files: