UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Delaunay3.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Containers/Array.h"
7#include "IndexTypes.h"
8#include "Math/RandomStream.h"
9#include "Math/Vector.h"
10#include "MathUtil.h"
11#include "Templates/PimplPtr.h"
12
13
14namespace UE {
15namespace Geometry {
16
17using namespace UE::Math;
18
19// Internal representation of mesh connectivity; not exposed to interface
20struct FDelaunay3Connectivity;
21
23{
24public:
25
26 //
27 // Inputs
28 //
29
30 // Source for random permutations, used internally in the triangulation algorithm
32
41
42 // Get the result as an array of tetrahedra
43 // Note: This creates a new array each call, because the internal data structure does not have a tetrahedra array
44 GEOMETRYCORE_API TArray<FIndex4i> GetTetrahedraAsFIndex4i(bool bReverseOrientation = false) const;
45 GEOMETRYCORE_API TArray<FIntVector4> GetTetrahedra(bool bReverseOrientation = false) const;
46
47 // @return true if triangulation is Delaunay, useful for validating results (note: likely to be false if edges are constrained)
50
51protected:
53};
54
55} // end namespace UE::Geometry
56} // end namespace UE
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition ArrayView.h:139
Definition Array.h:670
Definition Delaunay3.h:23
GEOMETRYCORE_API bool Triangulate(TArrayView< const TVector< double > > Vertices)
Definition Delaunay3.cpp:566
GEOMETRYCORE_API TArray< FIntVector4 > GetTetrahedra(bool bReverseOrientation=false) const
Definition Delaunay3.cpp:606
FRandomStream RandomStream
Definition Delaunay3.h:31
GEOMETRYCORE_API TArray< FIndex4i > GetTetrahedraAsFIndex4i(bool bReverseOrientation=false) const
Definition Delaunay3.cpp:582
GEOMETRYCORE_API bool IsDelaunay(TArrayView< const FVector3f > Vertices) const
Definition Delaunay3.cpp:630
TPimplPtr< FDelaunay3Connectivity > Connectivity
Definition Delaunay3.h:52
Definition Sphere.cpp:10
Definition AdvancedWidgetsModule.cpp:13
Definition RandomStream.h:20
Definition PimplPtr.h:50
Definition Vector.h:51