ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::KDTree::KdCell Struct Reference

A KDTre cell struct. More...

#include <CVKdTree.h>

Collaboration diagram for cloudViewer::KDTree::KdCell:

Public Member Functions

 KdCell ()
 

Public Attributes

CCVector3 inbbmax
 Inside bounding box max point. More...
 
CCVector3 inbbmin
 Inside bounding box min point. More...
 
CCVector3 outbbmin
 Outside bounding box min point. More...
 
CCVector3 outbbmax
 Outside bounding box max point. More...
 
unsigned cuttingDim
 
PointCoordinateType cuttingCoordinate
 Place where the space is cut into two sub-spaces (children) More...
 
struct KdCellleSon
 
struct KdCellgSon
 
struct KdCellfather
 To go up in the tree. More...
 
unsigned startingPointIndex
 Index of the first element that belongs to this cell. More...
 
unsigned nbPoints
 Number of elements in this cell. More...
 
unsigned char boundsMask
 Mask to know if the outside box is bounded for a given dimmension. More...
 

Detailed Description

A KDTre cell struct.

Definition at line 101 of file CVKdTree.h.

Constructor & Destructor Documentation

◆ KdCell()

cloudViewer::KDTree::KdCell::KdCell ( )
inline

Definition at line 102 of file CVKdTree.h.

Member Data Documentation

◆ boundsMask

unsigned char cloudViewer::KDTree::KdCell::boundsMask

Mask to know if the outside box is bounded for a given dimmension.

if boundsMask & (2^d) then outbbmin.u[d] is bounded (else the box is opened in outmin.u[d] - i.e. outbbmin.u[d] = -infinite) if boundsmask & (2^(3+d)) then outbbmax.u[d] is bounded (else the box is opened in outmax.u[d] - i.e. outbbmax.u[d] = infinite)

Definition at line 160 of file CVKdTree.h.

Referenced by cloudViewer::KDTree::insidePointToCellDistance(), and cloudViewer::KDTree::updateOutsideBoundingBox().

◆ cuttingCoordinate

◆ cuttingDim

unsigned cloudViewer::KDTree::KdCell::cuttingDim

◆ father

◆ gSon

◆ inbbmax

CCVector3 cloudViewer::KDTree::KdCell::inbbmax

Inside bounding box max point.

The inside bounding box is the smallest cube containing all the points in the cell

Definition at line 119 of file CVKdTree.h.

Referenced by cloudViewer::KDTree::pointToCellDistances(), cloudViewer::KDTree::pointToCellSquareDistance(), and cloudViewer::KDTree::updateInsideBoundingBox().

◆ inbbmin

CCVector3 cloudViewer::KDTree::KdCell::inbbmin

Inside bounding box min point.

The inside bounding box is the smallest cube containing all the points in the cell

Definition at line 124 of file CVKdTree.h.

Referenced by cloudViewer::KDTree::pointToCellDistances(), cloudViewer::KDTree::pointToCellSquareDistance(), and cloudViewer::KDTree::updateInsideBoundingBox().

◆ leSon

◆ nbPoints

◆ outbbmax

CCVector3 cloudViewer::KDTree::KdCell::outbbmax

Outside bounding box max point.

The outside bounding box is the bigest cube contained inside the cutting planes that lead to the cell

Definition at line 134 of file CVKdTree.h.

Referenced by cloudViewer::KDTree::insidePointToCellDistance(), and cloudViewer::KDTree::updateOutsideBoundingBox().

◆ outbbmin

CCVector3 cloudViewer::KDTree::KdCell::outbbmin

Outside bounding box min point.

The outside bounding box is the bigest cube contained inside the cutting planes that lead to the cell

Definition at line 129 of file CVKdTree.h.

Referenced by cloudViewer::KDTree::insidePointToCellDistance(), and cloudViewer::KDTree::updateOutsideBoundingBox().

◆ startingPointIndex


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