ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
MonoDimensionalCellCodes Struct Reference

Public Member Functions

 MonoDimensionalCellCodes ()
 Default initialization. More...
 

Public Attributes

cloudViewer::DgmOctree::CellCode values [VALUE_COUNT]
 Mono-dimensional cell codes. More...
 

Static Public Attributes

static const int VALUE_COUNT = cloudViewer::DgmOctree::MAX_OCTREE_LENGTH
 Total number of positions/values. More...
 

Detailed Description

Pre-computed cell codes for all potential cell positions (along a unique dimension)

Definition at line 65 of file DgmOctree.cpp.

Constructor & Destructor Documentation

◆ MonoDimensionalCellCodes()

MonoDimensionalCellCodes::MonoDimensionalCellCodes ( )
inline

Default initialization.

Definition at line 73 of file DgmOctree.cpp.

References cloudViewer::DgmOctree::MAX_OCTREE_LEVEL.

Member Data Documentation

◆ VALUE_COUNT

const int MonoDimensionalCellCodes::VALUE_COUNT = cloudViewer::DgmOctree::MAX_OCTREE_LENGTH
static

Total number of positions/values.

There are 1024 possible values at level 10, and 2M. at level 21.

Warning
Never pass a 'constant initializer' by reference

Definition at line 70 of file DgmOctree.cpp.

Referenced by cloudViewer::DgmOctree::GenerateTruncatedCellCode().

◆ values

cloudViewer::DgmOctree::CellCode MonoDimensionalCellCodes::values[VALUE_COUNT]

Mono-dimensional cell codes.

Definition at line 101 of file DgmOctree.cpp.

Referenced by GenerateCellCodeForDim(), and cloudViewer::DgmOctree::GenerateTruncatedCellCode().


The documentation for this struct was generated from the following file: