Public Member Functions | |
Voxel (MailboxPrim *op) | |
void | AddPrimitive (MailboxPrim *prim) |
~Voxel () | |
bool | Intersect (const Ray &ray, Intersection *isect, int rayId) |
bool | IntersectP (const Ray &ray, int rayId) |
Public Attributes | |
union { | |
MailboxPrim * onePrimitive | |
MailboxPrim ** primitives | |
}; | |
u_int | allCanIntersect:1 |
u_int | nPrimitives:31 |
Definition at line 42 of file grid.cpp.
Voxel::Voxel | ( | MailboxPrim * | op | ) | [inline] |
Voxel::~Voxel | ( | ) | [inline] |
Definition at line 68 of file grid.cpp.
References nPrimitives, and primitives.
Referenced by GridAccel::~GridAccel().
void Voxel::AddPrimitive | ( | MailboxPrim * | prim | ) | [inline] |
Definition at line 49 of file grid.cpp.
References IsPowerOf2(), nPrimitives, onePrimitive, and primitives.
Referenced by GridAccel::GridAccel().
bool Voxel::Intersect | ( | const Ray & | ray, | |
Intersection * | isect, | |||
int | rayId | |||
) |
Definition at line 288 of file grid.cpp.
References StatsRatio::Add(), allCanIntersect, Assert, MailboxPrim::lastMailboxId, nPrimitives, onePrimitive, MailboxPrim::primitive, primitives, rayHits, and rayTests.
Referenced by GridAccel::Intersect().
bool Voxel::IntersectP | ( | const Ray & | ray, | |
int | rayId | |||
) |
Definition at line 391 of file grid.cpp.
References StatsRatio::Add(), allCanIntersect, Assert, MailboxPrim::lastMailboxId, nPrimitives, onePrimitive, MailboxPrim::primitive, primitives, rayHits, and rayTests.
Referenced by GridAccel::IntersectP().
Definition at line 76 of file grid.cpp.
Referenced by AddPrimitive(), Intersect(), IntersectP(), and Voxel().
Definition at line 77 of file grid.cpp.
Referenced by AddPrimitive(), Intersect(), IntersectP(), and ~Voxel().
union { ... } |
Definition at line 80 of file grid.cpp.
Referenced by AddPrimitive(), GridAccel::GridAccel(), Intersect(), IntersectP(), Voxel(), and ~Voxel().