The spica renderer
Classes | Public Member Functions | List of all members
spica::BVHAccel Class Reference

Binary BVH accelerator class. More...

#include <bvh.h>

Inheritance diagram for spica::BVHAccel:
spica::Accelerator spica::Aggregate spica::Uncopyable spica::Primitive spica::CObject

Classes

struct  BucketInfo
 
union  Children
 
struct  ComparePoint
 
struct  CompareToBucket
 
struct  SIMDBVHNode
 

Public Member Functions

 BVHAccel (const std::vector< std::shared_ptr< Primitive >> &prims, bool useSIMD=false)
 
 BVHAccel (const std::vector< std::shared_ptr< Primitive >> &prims, RenderParams &params)
 
Bounds3d worldBound () const override
 
void construct () override
 
virtual bool intersect (Ray &ray, SurfaceInteraction *isect) const override
 
virtual bool intersect (Ray &ray) const override
 
std::vector< Triangletriangulate () const override
 
- Public Member Functions inherited from spica::Accelerator
 Accelerator (const std::vector< std::shared_ptr< Primitive >> &primitives)
 
 Accelerator (const std::vector< std::shared_ptr< Primitive >> &primitives, RenderParams &params)
 
const std::vector
< std::shared_ptr< Primitive > > & 
primitives () const
 
- Public Member Functions inherited from spica::Aggregate
const Lightlight () const override
 
const Materialmaterial () const override
 
void setScatterFuncs (SurfaceInteraction *intr, MemoryArena &arena) const override
 

Additional Inherited Members

- Protected Attributes inherited from spica::Accelerator
std::vector< std::shared_ptr
< Primitive > > 
primitives_
 
Bounds3d worldBound_
 

Detailed Description

Binary BVH accelerator class.


The documentation for this class was generated from the following files: