Public Member Functions | |
| void | initLeaf (int *primNums, int np, MailboxPrim *mailboxPrims, MemoryArena &arena) |
| void | initInterior (int axis, float s) |
| float | SplitPos () const |
| int | nPrimitives () const |
| int | SplitAxis () const |
| bool | IsLeaf () const |
Public Attributes | |
| union { | |
| u_int flags | |
| float split | |
| u_int nPrims | |
| }; | |
| union { | |
| u_int aboveChild | |
| MailboxPrim * onePrimitive | |
| MailboxPrim ** primitives | |
| }; | |
Definition at line 36 of file kdtree.cpp.
| void KdAccelNode::initLeaf | ( | int * | primNums, | |
| int | np, | |||
| MailboxPrim * | mailboxPrims, | |||
| MemoryArena & | arena | |||
| ) | [inline] |
Definition at line 38 of file kdtree.cpp.
References StatsRatio::Add(), MemoryArena::Alloc(), flags, StatsCounter::Max(), nPrims, onePrimitive, and primitives.
Referenced by KdTreeAccel::buildTree().
| void KdAccelNode::initInterior | ( | int | axis, | |
| float | s | |||
| ) | [inline] |
| float KdAccelNode::SplitPos | ( | ) | const [inline] |
Definition at line 74 of file kdtree.cpp.
References split.
Referenced by KdTreeAccel::Intersect(), and KdTreeAccel::IntersectP().
| int KdAccelNode::nPrimitives | ( | ) | const [inline] |
Definition at line 75 of file kdtree.cpp.
References nPrims.
Referenced by KdTreeAccel::Intersect(), and KdTreeAccel::IntersectP().
| int KdAccelNode::SplitAxis | ( | ) | const [inline] |
Definition at line 76 of file kdtree.cpp.
References flags.
Referenced by KdTreeAccel::Intersect(), and KdTreeAccel::IntersectP().
| bool KdAccelNode::IsLeaf | ( | ) | const [inline] |
Definition at line 77 of file kdtree.cpp.
References flags.
Referenced by KdTreeAccel::Intersect(), and KdTreeAccel::IntersectP().
Definition at line 79 of file kdtree.cpp.
Referenced by initInterior(), initLeaf(), IsLeaf(), and SplitAxis().
| float KdAccelNode::split |
| union { ... } |
Definition at line 84 of file kdtree.cpp.
Referenced by KdTreeAccel::buildTree(), KdTreeAccel::Intersect(), and KdTreeAccel::IntersectP().
Definition at line 85 of file kdtree.cpp.
Referenced by initLeaf(), KdTreeAccel::Intersect(), and KdTreeAccel::IntersectP().
Definition at line 86 of file kdtree.cpp.
Referenced by initLeaf(), KdTreeAccel::Intersect(), and KdTreeAccel::IntersectP().
| union { ... } |
1.5.6