Blender V2.61 - r43446
Protected Member Functions | Friends

RegularBVH Class Reference

#include <bvh.h>

Inheritance diagram for RegularBVH:
Inheritance graph
[legend]

List of all members.

Protected Member Functions

 RegularBVH (const BVHParams &params, const vector< Object * > &objects)
void pack_nodes (const array< int > &prims, const BVHNode *root)
void pack_leaf (const BVHStackEntry &e, const LeafNode *leaf)
void pack_inner (const BVHStackEntry &e, const BVHStackEntry &e0, const BVHStackEntry &e1)
void pack_node (int idx, const BoundBox &b0, const BoundBox &b1, int c0, int c1, uint visibility0, uint visibility1)
void refit_nodes ()
void refit_node (int idx, bool leaf, BoundBox &bbox, uint &visibility)

Friends

class BVH

Detailed Description

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


Constructor & Destructor Documentation

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

Definition at line 452 of file bvh.cpp.


Member Function Documentation

void RegularBVH::pack_inner ( const BVHStackEntry e,
const BVHStackEntry e0,
const BVHStackEntry e1 
) [protected]

Definition at line 467 of file bvh.cpp.

References BVHStackEntry::encodeIdx(), BVHStackEntry::idx, and pack_node().

Referenced by pack_nodes().

void RegularBVH::pack_leaf ( const BVHStackEntry e,
const LeafNode leaf 
) [protected]
void RegularBVH::pack_node ( int  idx,
const BoundBox b0,
const BoundBox b1,
int  c0,
int  c1,
uint  visibility0,
uint  visibility1 
) [protected]
void RegularBVH::pack_nodes ( const array< int > &  prims,
const BVHNode root 
) [protected, virtual]
void RegularBVH::refit_node ( int  idx,
bool  leaf,
BoundBox bbox,
uint visibility 
) [protected]
void RegularBVH::refit_nodes ( ) [protected, virtual]

Implements BVH.

Definition at line 529 of file bvh.cpp.

References assert, PackedBVH::is_leaf, BVH::pack, BVH::params, refit_node(), and BVHParams::top_level.


Friends And Related Function Documentation

friend class BVH [friend]

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


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