Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FDelaunay2
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TArray< TArray< FVector2d > > GetVoronoiCells
(
TArrayView< const FVector2d > Vertices, |
Get Voronoi diagram cells as dual of the Delaunay triangulation. | CompGeom/Delaunay2.h | |
TArray< TArray< FVector2f > > GetVoronoiCells
(
TArrayView< const FVector2f > Vertices, |
CompGeom/Delaunay2.h |
GetVoronoiCells(TArrayView< const FVector2d >, bool, FAxisAlignedBox2d, double)
Description
Get Voronoi diagram cells as dual of the Delaunay triangulation. You must call Triangulate() before calling this.
| Name | GetVoronoiCells |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/Delaunay2.h |
| Include Path | #include "CompGeom/Delaunay2.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/CompGeom/Delaunay2.cpp |
TArray < TArray < FVector2d > > GetVoronoiCells
(
TArrayView < const FVector2d > Vertices,
bool bIncludeBoundary,
FAxisAlignedBox2d ClipBounds,
double ExpandBounds
) const
The cells of each Voronoi site, or an empty array if the Triangulation was not yet computed
Parameters
| Name | Remarks |
|---|---|
| Vertices | Vertices of the Delaunay triangulation, to be used as the sites of the Voronoi diagram |
| bIncludeBoundary | If true, include the cells on the boundary of the diagram. These cells are conceptually infinite, but will be clipped to a bounding box. |
| ClipBounds | If non-empty, all Voronoi diagram cells will be clipped to this rectangle. |
| ExpandBounds | Amount to expand the clipping bounds beyond the Bounds argument (or the bounding box of non-boundary Voronoi cells, if Bounds was empty) |
GetVoronoiCells(TArrayView< const FVector2f >, bool, FAxisAlignedBox2f, float)
| Name | GetVoronoiCells |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/Delaunay2.h |
| Include Path | #include "CompGeom/Delaunay2.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/CompGeom/Delaunay2.cpp |
TArray < TArray < FVector2f > > GetVoronoiCells
(
TArrayView < const FVector2f > Vertices,
bool bIncludeBoundary,
FAxisAlignedBox2f ClipBounds,
float ExpandBounds
) const