Workspace 6.21.5
Public Types | Public Member Functions | Public Attributes | List of all members
OctreeNode< ScalarType > Class Template Reference

A node in the octree.

#include <Mesh/DataStructures/octree.h>

Public Types

using VectorType = OctreeVector3< ScalarType >
 

Public Member Functions

 OctreeNode ()
 
 OctreeNode (OctreeIndex parent, const VectorType &boundsMin, const VectorType &boundsMax, ScalarType padding=0)
 
void initChildren ()
 

Public Attributes

VectorType boundsMax_
 
VectorType boundsMid_
 
VectorType boundsMin_
 
OctreeIndex children_ [8] {}
 
OctreeIndex items_
 
ScalarType padding_
 
OctreeIndex parent_
 

Member Typedef Documentation

◆ VectorType

using VectorType = OctreeVector3<ScalarType>

Constructor & Destructor Documentation

◆ OctreeNode() [1/2]

OctreeNode ( )
inline

◆ OctreeNode() [2/2]

OctreeNode ( OctreeIndex  parent,
const VectorType boundsMin,
const VectorType boundsMax,
ScalarType  padding = 0 
)
inline

Member Function Documentation

◆ initChildren()

void initChildren ( )
inline

Member Data Documentation

◆ boundsMax_

VectorType boundsMax_

◆ boundsMid_

VectorType boundsMid_

◆ boundsMin_

VectorType boundsMin_

◆ children_

OctreeIndex children_[8] {}

◆ items_

OctreeIndex items_

◆ padding_

ScalarType padding_

◆ parent_

OctreeIndex parent_