lux::Voxel Struct Reference

#include <grid.h>

List of all members.

Public Member Functions

 Voxel (GMailboxPrim *op)
void AddPrimitive (GMailboxPrim *prim)
 ~Voxel ()
bool Intersect (const Ray &ray, Intersection *isect, int rayId)
bool IntersectP (const Ray &ray, int rayId)

Public Attributes

union {
   GMailboxPrim *   onePrimitive
   GMailboxPrim **   primitives
}; 
u_int allCanIntersect:1
u_int nPrimitives:31


Detailed Description

Definition at line 49 of file grid.h.


Constructor & Destructor Documentation

lux::Voxel::Voxel ( GMailboxPrim op  )  [inline]

Definition at line 51 of file grid.h.

References allCanIntersect, nPrimitives, and onePrimitive.

lux::Voxel::~Voxel (  )  [inline]

Definition at line 75 of file grid.h.

References nPrimitives, and primitives.

Referenced by lux::GridAccel::~GridAccel().


Member Function Documentation

void lux::Voxel::AddPrimitive ( GMailboxPrim prim  )  [inline]

Definition at line 56 of file grid.h.

References IsPowerOf2(), nPrimitives, onePrimitive, blender::p, and primitives.

Referenced by lux::GridAccel::GridAccel().

bool Voxel::Intersect ( const Ray ray,
Intersection isect,
int  rayId 
)

bool Voxel::IntersectP ( const Ray ray,
int  rayId 
)


Member Data Documentation

union { ... }

Definition at line 86 of file grid.h.

Referenced by Intersect(), IntersectP(), and Voxel().

Definition at line 87 of file grid.h.

Referenced by AddPrimitive(), lux::GridAccel::GridAccel(), Intersect(), Voxel(), and ~Voxel().

Definition at line 83 of file grid.h.

Referenced by AddPrimitive(), Intersect(), IntersectP(), and Voxel().

Definition at line 84 of file grid.h.

Referenced by AddPrimitive(), Intersect(), IntersectP(), and ~Voxel().


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

Generated on Sat Aug 15 19:14:55 2009 for lux by  doxygen 1.5.9