UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FitOrientedBox3.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Math/Vector.h"
7#include "VectorTypes.h"
8#include "OrientedBoxTypes.h"
9
10class FProgressCancel;
11
12namespace UE
13{
14namespace Geometry
15{
16
22
34 template <typename RealType>
37
47 template <typename RealType>
49 {
50 auto GetPtFn = [&Points](int32 Idx)
51 {
52 return Points[Idx];
53 };
54 return FitOrientedBox3Points(Points.Num(), (TFunctionRef<TVector<RealType>(int32)>)GetPtFn, [](int32 Idx) {return true;}, FitMethod, SameNormalTolerance, ProgressCancel);
55 }
56
57
69 template <typename RealType>
72
73} // end namespace Geometry
74}// end namespace UE
75
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 ProgressCancel.h:187
Definition ArrayView.h:139
Definition AssetRegistryState.h:50
TOrientedBox3< RealType > OptimizeOrientedBox3Points(const TOrientedBox3< RealType > &InitialBox, int32 NumIterations, int32 NumPoints, TFunctionRef< TVector< RealType >(int32)> GetPointFunc, TFunctionRef< bool(int32)> Filter, EBox3FitCriteria FitMethod, FProgressCancel *ProgressCancel)
Definition FitOrientedBox3.cpp:93
TOrientedBox3< RealType > FitOrientedBox3Points(int32 NumPts, TFunctionRef< TVector< RealType >(int32)> GetPtFn, TFunctionRef< bool(int32)> FilterFn, EBox3FitCriteria FitMethod, RealType SameNormalTolerance, FProgressCancel *ProgressCancel)
Definition FitOrientedBox3.cpp:181
EBox3FitCriteria
Definition FitOrientedBox3.h:18
@ SurfaceArea
Definition FitOrientedBox3.h:20
@ Volume
Definition FitOrientedBox3.h:19
Definition AdvancedWidgetsModule.cpp:13
Definition OrientedBoxTypes.h:25
Definition Vector.h:51