#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 48 of file grid.h.
| lux::Voxel::Voxel | ( | GMailboxPrim * | op | ) | [inline] |
Definition at line 50 of file grid.h.
References allCanIntersect, nPrimitives, and onePrimitive.
| lux::Voxel::~Voxel | ( | ) | [inline] |
Definition at line 74 of file grid.h.
References nPrimitives, and primitives.
Referenced by lux::GridAccel::~GridAccel().
| void lux::Voxel::AddPrimitive | ( | GMailboxPrim * | prim | ) | [inline] |
Definition at line 55 of file grid.h.
References IsPowerOf2(), nPrimitives, onePrimitive, p, and primitives.
Referenced by lux::GridAccel::GridAccel().
| bool Voxel::Intersect | ( | const Ray & | ray, | |
| Intersection * | isect, | |||
| int | rayId | |||
| ) |
Definition at line 203 of file grid.cpp.
References allCanIntersect, nPrimitives, onePrimitive, p, lux::GMailboxPrim::primitive, and primitives.
Referenced by lux::GridAccel::Intersect().
Definition at line 309 of file grid.cpp.
References allCanIntersect, onePrimitive, p, lux::GMailboxPrim::primitive, and primitives.
Referenced by lux::GridAccel::IntersectP().
| union { ... } |
Definition at line 85 of file grid.h.
Referenced by Intersect(), IntersectP(), and Voxel().
Definition at line 86 of file grid.h.
Referenced by AddPrimitive(), lux::GridAccel::GridAccel(), Intersect(), Voxel(), and ~Voxel().
Definition at line 82 of file grid.h.
Referenced by AddPrimitive(), Intersect(), IntersectP(), and Voxel().
Definition at line 83 of file grid.h.
Referenced by AddPrimitive(), Intersect(), IntersectP(), and ~Voxel().
1.6.2-20100208