UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Voronoi.cpp File Reference
#include "Voronoi/Voronoi.h"
#include "Async/ParallelFor.h"
#include "voro++/voro++.hh"

Namespaces

namespace  THIRD_PARTY_INCLUDES_END
 

Functions

FBox THIRD_PARTY_INCLUDES_END::SafeInitBounds (const TArrayView< const FVector > &Points)
 
void THIRD_PARTY_INCLUDES_END::PutSites (voro::container *Container, const TArrayView< const FVector > &Sites, int32 Offset)
 
int32 THIRD_PARTY_INCLUDES_END::PutSitesWithDistanceCheck (voro::container *Container, const TArrayView< const FVector > &Sites, int32 Offset, double SquaredDistThreshold=1e-4)
 
TPimplPtr< voro::containerTHIRD_PARTY_INCLUDES_END::EmptyVoroContainerInit (int32 ExpectedNumSites, FBox &BoundingBox, double BoundingBoxSlack=VoronoiDefaultBoundingBoxSlack)
 
TPimplPtr< voro::containerTHIRD_PARTY_INCLUDES_END::StandardVoroContainerInit (const TArrayView< const FVector > &Sites, FBox &BoundingBox, double BoundingBoxSlack=VoronoiDefaultBoundingBoxSlack, double SquaredDistSkipPtThreshold=0.0f)
 
bool VoronoiNeighbors (const TArrayView< const FVector > &Sites, TArray< TArray< int > > &Neighbors, bool bExcludeBounds, double SquaredDistSkipPtThreshold)
 
bool GetVoronoiEdges (const TArrayView< const FVector > &Sites, const FBox &Bounds, TArray< TTuple< FVector, FVector > > &Edges, TArray< int32 > &CellMember, double SquaredDistSkipPtThreshold)
 

Variables

constexpr double THIRD_PARTY_INCLUDES_END::VoronoiDefaultBoundingBoxSlack = .01f
 

Function Documentation

◆ GetVoronoiEdges()

bool GetVoronoiEdges ( const TArrayView< const FVector > &  Sites,
const FBox Bounds,
TArray< TTuple< FVector, FVector > > &  Edges,
TArray< int32 > &  CellMember,
double  SquaredDistSkipPtThreshold 
)

◆ VoronoiNeighbors()

bool VoronoiNeighbors ( const TArrayView< const FVector > &  Sites,
TArray< TArray< int > > &  Neighbors,
bool  bExcludeBounds,
double  SquaredDistSkipPtThreshold 
)