Blender V2.61 - r43446
Classes | Functions

vbvh.h File Reference

#include <assert.h>
#include <algorithm>
#include "BLI_memarena.h"
#include "rayobject_rtbuild.h"

Go to the source code of this file.

Classes

struct  VBVHNode
struct  BuildBinaryVBVH< Node >

Functions

template<class Node >
static void bvh_node_push_childs (Node *node, Isect *UNUSED(isec), Node **stack, int &stack_pos)
template<class Node >
int count_childs (Node *parent)
template<class Node >
void append_sibling (Node *node, Node *sibling)

Detailed Description

Definition in file vbvh.h.


Function Documentation

template<class Node >
void append_sibling ( Node node,
Node sibling 
)

Definition at line 98 of file vbvh.h.

Referenced by pushup(), and pushup_simd().

template<class Node >
static void bvh_node_push_childs ( Node node,
Isect UNUSEDisec,
Node **  stack,
int &  stack_pos 
) [inline, static]

Definition at line 56 of file vbvh.h.

References is_leaf().

template<class Node >
int count_childs ( Node parent)

Definition at line 83 of file vbvh.h.

References i, and is_leaf().

Referenced by bvh_dfs_make_hint(), pushup(), and pushup_simd().