#include <grid.h>
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 |
Definition at line 49 of file grid.h.
lux::Voxel::Voxel | ( | GMailboxPrim * | op | ) | [inline] |
lux::Voxel::~Voxel | ( | ) | [inline] |
Definition at line 75 of file grid.h.
References nPrimitives, and primitives.
Referenced by lux::GridAccel::~GridAccel().
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 | |||
) |
Definition at line 198 of file grid.cpp.
References allCanIntersect, lux::Primitive::CanIntersect(), lux::Primitive::FullyRefine(), nPrimitives, onePrimitive, blender::p, lux::GMailboxPrim::primitive, and primitives.
Referenced by lux::GridAccel::Intersect().
bool Voxel::IntersectP | ( | const Ray & | ray, | |
int | rayId | |||
) |
Definition at line 303 of file grid.cpp.
References allCanIntersect, lux::Primitive::CanIntersect(), lux::Primitive::FullyRefine(), onePrimitive, blender::p, lux::GMailboxPrim::primitive, and primitives.
Referenced by lux::GridAccel::IntersectP().
union { ... } |
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().