CCCoreLib 31 May 2022
CloudCompare Core algorithms
|
Association between an index and the code of an octree cell. More...
#include <DgmOctree.h>
Public Member Functions | |
IndexAndCode () | |
Default constructor. | |
IndexAndCode (unsigned index, CellCode code) | |
Constructor from an index and a code. | |
IndexAndCode (const IndexAndCode &ic) | |
Copy constructor. | |
bool | operator< (const IndexAndCode &iac) const |
Code-based 'less than' comparison operator. | |
bool | operator> (const IndexAndCode &iac) const |
Code-based 'greater than' comparison operator. | |
Static Public Member Functions | |
static bool | codeComp (const IndexAndCode &a, const IndexAndCode &b) throw () |
Compares two IndexAndCode instances based on their code. More... | |
static bool | indexComp (const IndexAndCode &a, const IndexAndCode &b) throw () |
Compares two IndexAndCode instances based on their index. More... | |
Public Attributes | |
unsigned | theIndex |
index | |
CellCode | theCode |
cell code | |
Association between an index and the code of an octree cell.
Index could be the index of a point, in which case the code would correspond to the octree cell where the point lies.
|
inlinestatic |
Compares two IndexAndCode instances based on their code.
a | first IndexAndCode structure |
b | second IndexAndCode structure |
|
inlinestatic |
Compares two IndexAndCode instances based on their index.
a | first IndexAndCode structure |
b | second IndexAndCode structure |