Navigation
API > API/Runtime > API/Runtime/Voronoi > API/Runtime/Voronoi/FVoronoiDiagram
Description
Create a Voronoi diagram with the given sites, in a given bounding box. Any previous data is discarded.
| Name | Initialize |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Voronoi/Public/Voronoi/Voronoi.h |
| Include Path | #include "Voronoi/Voronoi.h" |
| Source | /Engine/Source/Runtime/Experimental/Voronoi/Private/Voronoi/Voronoi.cpp |
void Initialize
(
const TArrayView < const FVector > & Sites,
const FBox & Bounds,
double ExtraBoundingSpace,
double SquaredDistSkipPtThreshold
)
Parameters
| Name | Remarks |
|---|---|
| Sites | Voronoi sites for the diagram |
| Bounds | Bounding box within which to compute the Voronoi diagram |
| ExtraBoundingSpace | Voronoi diagram will be computed within the input Bounds + this amount of extra space in each dimension |
| SquaredDistSkipPtThreshold | A safety threshold to avoid creating invalid cells: sites that are within this distance of an already-added site will not be added. (If you know there will be no duplicate sites, can set to zero for faster perf.) |