UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FitKDOP3.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 "MathUtil.h"
8#include "Math/Vector.h"
9#include "Math/Plane.h"
10#include "VectorTypes.h"
11
12template <typename FuncType> class TFunctionRef;
13
14namespace UE
15{
16namespace Math { template <typename T> struct TVector; }
17
18namespace Geometry
19{
20
21
25 template <typename RealType>
30 RealType Epsilon = TMathUtil<RealType>::Epsilon, RealType VertexSnapDistance = (RealType)0.1, RealType Inflate = (RealType)0.1);
31
35 template <typename RealType>
44
48 template <typename RealType>
53 RealType Epsilon = TMathUtil<RealType>::Epsilon, RealType VertexSnapDistance = (RealType)0.1, RealType Inflate = (RealType)0.1)
54 {
55 return FitKDOPVertices3<RealType>(PlaneDirections, Points.Num(), [&Points](int32 Idx) {return Points[Idx];}, [](int32)->bool {return true;}, OutVertices, OptionalOutPlanes, Epsilon, VertexSnapDistance, Inflate);
56 }
57
58} // end namespace Geometry
59}// end namespace UE
60
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
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 AssetRegistryState.h:50
Definition MathUtil.h:150
bool FitKDOPVertices3(TArrayView< const UE::Math::TVector< RealType > > PlaneDirections, const int32 NumPoints, TFunctionRef< UE::Math::TVector< RealType >(int32)> GetPointFunc, TFunctionRef< bool(int32)> FilterFunc, TArray< UE::Math::TVector< RealType > > &OutVertices, TArray< UE::Math::TPlane< RealType > > *OptionalOutPlanes, RealType Epsilon, RealType VertexSnapDistance, RealType Inflate)
Definition FitKDOP3.cpp:134
Definition AdvancedWidgetsModule.cpp:13
Definition Plane.h:35
Definition Vector.h:51