FVoronoiDiagram

Windows
MacOS
Linux

References

Module

Voronoi

Header

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

Include

#include "Voronoi/Voronoi.h"

Syntax

class FVoronoiDiagram

Constructors

Name Description

Public function

FVoronoiDiagram

(
    const TArrayView< const FVector >&...,
    float ExtraBoundingSpace,
    float SquaredDistSkipPtThreshold
)

Public function

FVoronoiDiagram

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

Destructors

Name Description

Public function

~FVoronoiDiagram()

Functions

Name Description

Public function

void

 

AddSites

(
    const TArrayView< const FVector >&...,
    float SquaredDistSkipPtThreshold
)

Public function

void

 

ComputeAllCells

(
    TArray< FVoronoiCellInfo >& AllCel...
)

Public function

int32

 

FindCell

(
    const FVector& Pos
)

Find the id of the Voronoi cell containing the given position (or -1 if position is outside diagram)

Public function Const

int32

 

Num()

Constants

Name

Description

DefaultBoundingBoxSlack

We typically add extra space to the bounds of the Voronoi diagram, to avoid numerical issues of a Voronoi site being on the boundary

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