bvh.cpp File Reference

#include "stdafx.h"
#include "accelerators/bvh.h"
#include "pbrt.h"
#include "primitive.h"
#include "probes.h"
#include "paramset.h"

Go to the source code of this file.

Classes

struct  BVHPrimitiveInfo
struct  BVHBuildNode
struct  CompareToMid
struct  ComparePoints
struct  CompareToBucket
struct  LinearBVHNode

Functions

static bool IntersectP (const BBox &bounds, const Ray &ray, const Vector &invDir, const uint32_t dirIsNeg[3])
BVHAccelCreateBVHAccelerator (const vector< Reference< Primitive > > &prims, const ParamSet &ps)

Function Documentation

BVHAccel* CreateBVHAccelerator ( const vector< Reference< Primitive > > &  prims,
const ParamSet ps 
)

Definition at line 479 of file bvh.cpp.

References ParamSet::FindOneInt(), and ParamSet::FindOneString().

Referenced by MakeAccelerator().

static bool IntersectP ( const BBox bounds,
const Ray ray,
const Vector invDir,
const uint32_t  dirIsNeg[3] 
) [inline, static]

Definition at line 118 of file bvh.cpp.

References Ray::maxt, Ray::mint, Ray::o, Vector::x, Point::x, Vector::y, Point::y, Vector::z, and Point::z.

Referenced by AggregateTest::Render().

Generated on Sat Aug 28 20:00:12 2010 for pbrt by  doxygen 1.6.3