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

rayobject_blibvh.cpp File Reference

#include <assert.h>
#include "MEM_guardedalloc.h"
#include "BLI_kdopbvh.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "rayintersection.h"
#include "rayobject.h"

Go to the source code of this file.

Classes

struct  BVHObject
struct  BVHCallbackUserData

Typedefs

typedef struct BVHObject BVHObject

Functions

static int RE_rayobject_blibvh_intersect (RayObject *o, Isect *isec)
static void RE_rayobject_blibvh_add (RayObject *o, RayObject *ob)
static void RE_rayobject_blibvh_done (RayObject *o)
static void RE_rayobject_blibvh_free (RayObject *o)
static void RE_rayobject_blibvh_bb (RayObject *o, float *min, float *max)
static float RE_rayobject_blibvh_cost (RayObject *UNUSED(o))
static void RE_rayobject_blibvh_hint_bb (RayObject *UNUSED(o), RayHint *UNUSED(hint), float *UNUSED(min), float *UNUSED(max))
RayObjectRE_rayobject_blibvh_create (int size)
static void bvh_callback (void *userdata, int index, const BVHTreeRay *UNUSED(ray), BVHTreeRayHit *hit)

Variables

static RayObjectAPI bvh_api

Detailed Description

Definition in file rayobject_blibvh.cpp.


Typedef Documentation

typedef struct BVHObject BVHObject

Function Documentation

static void bvh_callback ( void *  userdata,
int  index,
const BVHTreeRay UNUSEDray,
BVHTreeRayHit hit 
) [static]
static void RE_rayobject_blibvh_add ( RayObject o,
RayObject ob 
) [static]
static void RE_rayobject_blibvh_bb ( RayObject o,
float *  min,
float *  max 
) [static]

Definition at line 166 of file rayobject_blibvh.cpp.

References BVHObject::bb, DO_MAX, and DO_MIN.

static float RE_rayobject_blibvh_cost ( RayObject UNUSEDo) [static]

Definition at line 49 of file rayobject_blibvh.cpp.

RayObject* RE_rayobject_blibvh_create ( int  size)
static void RE_rayobject_blibvh_done ( RayObject o) [static]

Definition at line 147 of file rayobject_blibvh.cpp.

References BLI_bvhtree_balance(), and BVHObject::bvh.

static void RE_rayobject_blibvh_free ( RayObject o) [static]
static void RE_rayobject_blibvh_hint_bb ( RayObject UNUSEDo,
RayHint UNUSEDhint,
float *  UNUSEDmin,
float *  UNUSEDmax 
) [static]

Definition at line 55 of file rayobject_blibvh.cpp.

static int RE_rayobject_blibvh_intersect ( RayObject o,
Isect isec 
) [static]

Variable Documentation