#include <octree.h>
Public Types | |
| typedef std::vector< Item > | ItemVector |
| typedef ItemVector::const_iterator | ItemVectorConstIt |
Public Member Functions | |
| OctreeNode () | |
| OctreeNode (const AABB3 &voxel) | |
| ~OctreeNode () | |
| template<typename ItemVoxelIntersector> void | Subdivide (int pop_threshold, int remaining_subdiv, ItemVoxelIntersector &intersector) |
| template<typename Visitor> bool | Trace (const Point3 &origin, Real tx0, Real ty0, Real tz0, Real tx1, Real ty1, Real tz1, unsigned int a, unsigned int b, Visitor &visitor) const |
| template<typename Visitor> void | Visit (Visitor &visitor) const |
Public Attributes | |
| AABB3 | m_voxel |
| The volume occupied by the node. | |
| Point3 | m_center |
| The center of this volume. | |
| bool | m_is_leaf |
| Indicates whether this node is a leaf or not. | |
| OctreeNode * | m_children [8] |
| The children of this node. | |
| ItemVector | m_items |
| Items owned by this node, if this node is a leaf. | |
|
|||||
|
Definition at line 58 of file sheep/src/common/math/octree.h. |
|
|||||
|
Definition at line 59 of file sheep/src/common/math/octree.h. |
|
|||||||||
|
Definition at line 445 of file sheep/src/common/math/octree.h. |
|
||||||||||
|
Definition at line 449 of file sheep/src/common/math/octree.h. |
|
|||||||||
|
Definition at line 455 of file sheep/src/common/math/octree.h. |
|
||||||||||||||||||||||||
|
Definition at line 68 of file sheep/src/common/math/octree.h. Referenced by sheep::OctreeNode< const triangle * >::Subdivide(). |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Definition at line 136 of file sheep/src/common/math/octree.h. Referenced by sheep::OctreeNode< const triangle * >::Trace(). |
|
||||||||||||||
|
Definition at line 288 of file sheep/src/common/math/octree.h. Referenced by sheep::OctreeNode< const triangle * >::Visit(). |
|
|||||
|
The center of this volume.
Definition at line 53 of file sheep/src/common/math/octree.h. Referenced by sheep::Octree< const triangle * >::Hit(). |
|
|||||
|
The children of this node.
Definition at line 56 of file sheep/src/common/math/octree.h. Referenced by sheep::Octree< const triangle * >::Hit(). |
|
|||||
|
Indicates whether this node is a leaf or not.
Definition at line 55 of file sheep/src/common/math/octree.h. Referenced by sheep::Octree< const triangle * >::Hit(). |
|
|||||
|
Items owned by this node, if this node is a leaf.
Definition at line 61 of file sheep/src/common/math/octree.h. Referenced by sheep::OctreeNode< const triangle * >::Subdivide(). |
|
|||||
|
The volume occupied by the node.
Definition at line 52 of file sheep/src/common/math/octree.h. |
1.3.6