Blender  V2.59
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 *min, float *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 60 of file rayobject_vbvh.cpp.

Referenced by bvh_create_tree().


Function Documentation

void bfree ( VBVHTree tree)

Definition at line 162 of file rayobject_vbvh.cpp.

References bvh_free(), Global::f, 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 200 of file rayobject_vbvh.cpp.

References assert.

template<class Tree >
void bvh_hint_bb ( Tree *  tree,
LCTSHint hint,
float *  min,
float *  max 
)

Definition at line 153 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 183 of file rayobject_vbvh.cpp.

RayObject* RE_rayobject_vbvh_create ( int  size)

Definition at line 209 of file rayobject_vbvh.cpp.

References size().

Referenced by RE_rayobject_create().


Variable Documentation

int tot_hints = 0

Definition at line 37 of file rayobject_vbvh.cpp.

Referenced by bfree().

int tot_pushdown = 0

Definition at line 36 of file rayobject_vbvh.cpp.

Referenced by bfree(), and pushdown().

int tot_pushup = 0

Definition at line 35 of file rayobject_vbvh.cpp.

Referenced by bfree(), and pushup().