Blender V2.61 - r43446
Public Types | Public Member Functions | Public Attributes

BVHParams Class Reference

#include <bvh_params.h>

List of all members.

Public Types

enum  { MAX_DEPTH = 64, MAX_SPATIAL_DEPTH = 48, NUM_SPATIAL_BINS = 32 }

Public Member Functions

 BVHParams ()
float cost (int num_nodes, int num_tris) const
float triangle_cost (int n) const
float node_cost (int n) const

Public Attributes

int use_spatial_split
float spatial_split_alpha
float sah_node_cost
float sah_triangle_cost
int min_leaf_size
int max_leaf_size
int top_level
int use_cache
int use_qbvh
int pad

Detailed Description

Definition at line 25 of file bvh_params.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
MAX_DEPTH 
MAX_SPATIAL_DEPTH 
NUM_SPATIAL_BINS 

Definition at line 52 of file bvh_params.h.


Constructor & Destructor Documentation

BVHParams::BVHParams ( ) [inline]

Member Function Documentation

float BVHParams::cost ( int  num_nodes,
int  num_tris 
) const [inline]

Definition at line 76 of file bvh_params.h.

References node_cost(), and triangle_cost().

Referenced by BVHNode::computeSubtreeSAHCost().

float BVHParams::node_cost ( int  n) const [inline]

Definition at line 82 of file bvh_params.h.

References sah_node_cost.

Referenced by BVHBuild::build_node(), and cost().

float BVHParams::triangle_cost ( int  n) const [inline]

Member Data Documentation

Definition at line 38 of file bvh_params.h.

Referenced by BVHBuild::build_node(), and BVHParams().

Definition at line 37 of file bvh_params.h.

Referenced by BVHBuild::build_node(), and BVHParams().

Definition at line 49 of file bvh_params.h.

Referenced by BVHParams().

Definition at line 33 of file bvh_params.h.

Referenced by BVHParams(), and node_cost().

Definition at line 34 of file bvh_params.h.

Referenced by BVHParams(), and triangle_cost().

Definition at line 30 of file bvh_params.h.

Referenced by BVHParams(), and BVHBuild::run().


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