FVoronoiDiagram::FVoronoiDiagram

Windows
MacOS
Linux

References

Module

Voronoi

Header

/Engine/Source/Runtime/Experimental/Voronoi/Public/Voronoi/Voronoi.h

Include

#include "Voronoi/Voronoi.h"

Source

/Engine/Source/Runtime/Experimental/Voronoi/Private/Voronoi/Voronoi.cpp

Syntax

FVoronoiDiagram
(
    const TArrayView< const FVector > & Sites,
    const FBox & Bounds,
    float ExtraBoundingSpace,
    float SquaredDistSkipPtThreshold
)

Parameters

Parameter

Description

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.)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss