Blender V2.61 - r43446
Classes | Defines | Functions | Variables

rayobject_vbvh.cpp File Reference

#include <assert.h>
#include "MEM_guardedalloc.h"
#include "BKE_global.h"
#include "BLI_math.h"
#include "BLI_memarena.h"
#include "BLI_utildefines.h"
#include "rayintersection.h"
#include "rayobject.h"
#include "rayobject_rtbuild.h"
#include "reorganize.h"
#include "bvh.h"
#include "vbvh.h"
#include <queue>
#include <algorithm>

Go to the source code of this file.

Classes

struct  VBVHTree
struct  PackCost

Defines

#define DFS_STACK_SIZE   256

Functions

template<>
void bvh_done< VBVHTree > (VBVHTree *obj)
template<int StackSize>
int intersect (VBVHTree *obj, Isect *isec)
template<class Tree >
void bvh_hint_bb (Tree *tree, LCTSHint *hint, float *UNUSED(min), float *UNUSED(max))
void bfree (VBVHTree *tree)
template<class Tree , int STACK_SIZE>
RayObjectAPI make_api ()
template<class Tree >
RayObjectAPIbvh_get_api (int maxstacksize)
RayObjectRE_rayobject_vbvh_create (int size)

Variables

int tot_pushup = 0
int tot_pushdown = 0
int tot_hints = 0

Detailed Description

Definition in file rayobject_vbvh.cpp.


Define Documentation

#define DFS_STACK_SIZE   256

Definition at line 58 of file rayobject_vbvh.cpp.

Referenced by bvh_create_tree().


Function Documentation

void bfree ( VBVHTree tree)

Definition at line 160 of file rayobject_vbvh.cpp.

References bvh_free(), G, G_DEBUG, tot_hints, tot_moves, tot_pushdown, and tot_pushup.

template<>
void bvh_done< VBVHTree > ( VBVHTree obj)
template<class Tree >
RayObjectAPI* bvh_get_api ( int  maxstacksize)

Definition at line 198 of file rayobject_vbvh.cpp.

References assert.

template<class Tree >
void bvh_hint_bb ( Tree *  tree,
LCTSHint hint,
float *  UNUSEDmin,
float *  UNUSEDmax 
)

Definition at line 151 of file rayobject_vbvh.cpp.

References LCTSHint::size, and LCTSHint::stack.

template<int StackSize>
int intersect ( VBVHTree obj,
Isect isec 
)
template<class Tree , int STACK_SIZE>
RayObjectAPI make_api ( )

Definition at line 181 of file rayobject_vbvh.cpp.

RayObject* RE_rayobject_vbvh_create ( int  size)

Definition at line 207 of file rayobject_vbvh.cpp.

References size().

Referenced by RE_rayobject_create().


Variable Documentation

int tot_hints = 0

Definition at line 35 of file rayobject_vbvh.cpp.

Referenced by bfree().

int tot_pushdown = 0

Definition at line 34 of file rayobject_vbvh.cpp.

Referenced by bfree(), and pushdown().

int tot_pushup = 0

Definition at line 33 of file rayobject_vbvh.cpp.

Referenced by bfree(), and pushup().