Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/CompGeom > API/Runtime/GeometryCore/CompGeom/FDelaunay2
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/Delaunay2.h |
| Include | #include "CompGeom/Delaunay2.h" |
template<typename RealType>
static TArray < TArray < TVector2 < RealType > > > ComputeVoronoiCells
(
TArrayView < const TVector2 < RealType > > Sites,
bool bIncludeBoundary,
TAxisAlignedBox2 < RealType > ClipBounds,
RealType ExpandBounds
)
Remarks
Compute Voronoi diagram cells The cells of each Voronoi site, or an empty array if the Triangulation was not yet computed
Parameters
| Name | Description |
|---|---|
| Sites | Positions to use 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) |