ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
CVKdTree.cpp File Reference
#include "CVKdTree.h"
#include "GenericIndexedCloud.h"
#include "GenericProgressCallback.h"
#include <algorithm>
Include dependency graph for CVKdTree.cpp:

Go to the source code of this file.

Functions

static bool ComparisonX (const unsigned &a, const unsigned &b)
 Compares X coordinates of two points designated by their index. More...
 
static bool ComparisonY (const unsigned &a, const unsigned &b)
 Compares Y coordinates of two points designated by their index. More...
 
static bool ComparisonZ (const unsigned &a, const unsigned &b)
 Compares Z coordinates of two points designated by their index. More...
 

Variables

static cloudViewer::GenericIndexedClouds_comparisonCloud = nullptr
 

Function Documentation

◆ ComparisonX()

static bool ComparisonX ( const unsigned &  a,
const unsigned &  b 
)
static

Compares X coordinates of two points designated by their index.

Definition at line 91 of file CVKdTree.cpp.

References cloudViewer::GenericIndexedCloud::getPoint(), s_comparisonCloud, and Tuple3Tpl< Type >::x.

Referenced by cloudViewer::KDTree::buildSubTree().

◆ ComparisonY()

static bool ComparisonY ( const unsigned &  a,
const unsigned &  b 
)
static

Compares Y coordinates of two points designated by their index.

Definition at line 97 of file CVKdTree.cpp.

References cloudViewer::GenericIndexedCloud::getPoint(), s_comparisonCloud, and Tuple3Tpl< Type >::y.

Referenced by cloudViewer::KDTree::buildSubTree().

◆ ComparisonZ()

static bool ComparisonZ ( const unsigned &  a,
const unsigned &  b 
)
static

Compares Z coordinates of two points designated by their index.

Definition at line 103 of file CVKdTree.cpp.

References cloudViewer::GenericIndexedCloud::getPoint(), s_comparisonCloud, and Tuple3Tpl< Type >::z.

Referenced by cloudViewer::KDTree::buildSubTree().

Variable Documentation

◆ s_comparisonCloud

cloudViewer::GenericIndexedCloud* s_comparisonCloud = nullptr
static