Navigation
API > API/Runtime > API/Runtime/Voronoi > API/Runtime/Voronoi/FVoronoiDiagram
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 FindCell
(
const FVector& Pos, |
Voronoi/Voronoi.h | ||
int32 FindCell
(
const FVector& Pos, |
Find the closest Voronoi cell to a given position | Voronoi/Voronoi.h |
FindCell(const FVector &, FVoronoiComputeHelper &)
| Name | FindCell |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Voronoi/Public/Voronoi/Voronoi.h |
| Include Path | #include "Voronoi/Voronoi.h" |
int32 FindCell
(
const FVector & Pos,
FVoronoiComputeHelper & ComputeHelper
) const
FindCell(const FVector &, FVoronoiComputeHelper &, FVector &)
Description
Find the closest Voronoi cell to a given position
| Name | FindCell |
| 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 |
int32 FindCell
(
const FVector & Pos,
FVoronoiComputeHelper & ComputeHelper,
FVector & OutFoundSite
) const
The id of the Voronoi cell containing the given position, or -1 if position is outside diagram
Parameters
| Name | Remarks |
|---|---|
| Pos | Position to query for closest point |
| ComputeHelper | A valid helper as returned by GetComputeHelper() for this voronoi diagram |
| OutFoundSite | The position of the closest Voronoi site, if any |