Navigation
Unreal Engine C++ API Reference > Runtime > Voronoi > Voronoi
References
Module | Voronoi |
Header | /Engine/Source/Runtime/Experimental/Voronoi/Public/Voronoi/Voronoi.h |
Include | #include "Voronoi/Voronoi.h" |
Syntax
class FVoronoiDiagramField
Remarks
Use a Voronoi diagram to support faster querying of Voronoi-like data from arbitrary sample points:
- Distance to closest point
- ID of closest point
- IDs of closest two points
- Distance to closest Voronoi cell boundary (not considering bounding box walls)
Note: Queries are only thread safe if each thread has its own FVoronoiComputeHelper
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
|||
![]() |
FVoronoiDiagramField
(
const FVoronoiDiagramField& Other |
||
![]() |
FVoronoiDiagramField
(
FVoronoiDiagramField&& Other |
||
![]() |
FVoronoiDiagramField
(
const TArray< FVector >& SitesIn, |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
int32 | ClosestID
(
const FVector& Sample, |
|
![]() |
TPair< int32, int32 > | ClosestTwoIDs
(
const FVector& Sample, |
|
![]() |
double | DistanceToCellWall
(
const FVector& Sample, |
|
![]() |
double | DistanceToClosest
(
const FVector& Sample, |
|
![]() ![]() |
FVoronoiComputeHelper | ||
![]() |
void | Initialize
(
const TArray< FVector >& SitesIn, |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
FVoronoiDiagramField & | operator=
(
const FVoronoiDiagramField& Other |
|
![]() |
FVoronoiDiagramField & | operator=
(
FVoronoiDiagramField&& Other |