FPointSetHashtable

FPointSetHashTable builds a spatial data structure that supports efficient range queries on a point set (in FPointSetAdapterd form).

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Spatial/PointSetHashTable.h

Include

#include "Spatial/PointSetHashTable.h"

Syntax

class FPointSetHashtable

Remarks

FPointSetHashTable builds a spatial data structure that supports efficient range queries on a point set (in FPointSetAdapterd form). The spatial data structure is currently a uniform sparse 3D grid.

Variables

Name Description

Protected variable

double

 

CellSize

Cell size of grid

Protected variable

TSparseGrid3< P...

 

Grid

Sparse grid, each voxel contains lists of contained points

Protected variable

FShiftGridIndex...

 

GridIndexer

Index mapping object

Protected variable

FVector3d

 

Origin

World origin of sparse grid

Protected variable

FPointSetAdapte...

 

Points

Input point set

Constructors

Name Description

Public function

FPointSetHashtable

(
    FPointSetAdapterd* PointSetIn
)

Functions

Name Description

Public function

void

 

Build

(
    double CellSize,
    const FVector3d& Origin
)

Construct the spatial data structure for the current point set

Public function

bool

 

FindPointsInBall

(
    const FVector3d& QueryPt,
    double QueryRadius,
    TArray< int >& ResultOut
)

Find all points within given query distance from query point.

Typedefs

Name

Description

PointList

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss