Blender V2.61 - r43446
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions

BVH Class Reference

#include <bvh.h>

Inheritance diagram for BVH:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~BVH ()
void build (Progress &progress)
void refit (Progress &progress)
void clear_cache_except ()

Static Public Member Functions

static BVHcreate (const BVHParams &params, const vector< Object * > &objects)

Public Attributes

PackedBVH pack
BVHParams params
vector< Object * > objects
string cache_filename

Protected Member Functions

 BVH (const BVHParams &params, const vector< Object * > &objects)
bool cache_read (CacheData &key)
void cache_write (CacheData &key)
void pack_triangles ()
void pack_triangle (int idx, float4 woop[3])
void pack_instances (size_t nodes_size)
virtual void pack_nodes (const array< int > &prims, const BVHNode *root)=0
virtual void refit_nodes ()=0

Detailed Description

Definition at line 81 of file intern/cycles/bvh/bvh.h.


Constructor & Destructor Documentation

virtual BVH::~BVH ( ) [inline, virtual]

Definition at line 90 of file intern/cycles/bvh/bvh.h.

BVH::BVH ( const BVHParams params,
const vector< Object * > &  objects 
) [protected]

Definition at line 56 of file bvh.cpp.


Member Function Documentation

void BVH::build ( Progress progress)
bool BVH::cache_read ( CacheData key) [protected]
void BVH::cache_write ( CacheData key) [protected]
void BVH::clear_cache_except ( )

Definition at line 125 of file bvh.cpp.

References Mesh::bvh, cache_filename, Cache::clear_except(), Cache::global, Object::mesh, and objects.

Referenced by build().

BVH * BVH::create ( const BVHParams params,
const vector< Object * > &  objects 
) [static]

Definition at line 61 of file bvh.cpp.

References BVHParams::use_qbvh.

void BVH::pack_instances ( size_t  nodes_size) [protected]
virtual void BVH::pack_nodes ( const array< int > &  prims,
const BVHNode root 
) [protected, pure virtual]

Implemented in RegularBVH, and QBVH.

Referenced by build(), and pack_instances().

void BVH::pack_triangle ( int  idx,
float4  woop[3] 
) [protected]
void BVH::pack_triangles ( ) [protected]
void BVH::refit ( Progress progress)

Definition at line 216 of file bvh.cpp.

References pack_triangles(), and refit_nodes().

Referenced by Mesh::compute_bvh().

virtual void BVH::refit_nodes ( ) [protected, pure virtual]

Implemented in RegularBVH, and QBVH.

Referenced by refit().


Member Data Documentation

Definition at line 87 of file intern/cycles/bvh/bvh.h.

Referenced by cache_read(), cache_write(), and clear_cache_except().

vector<Object*> BVH::objects

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