Navigation
API > API/Runtime > API/Runtime/GeometryCore
Description
Compute a close-fitting oriented bounding box to the given points. Relatively expensive; for a faster approximation use DiTOrientedBox.h's ComputeOrientedBBox
| Name | UE::Geometry::FitOrientedBox3Points |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/FitOrientedBox3.h |
| Include Path | #include "CompGeom/FitOrientedBox3.h" |
namespace UE
{
namespace Geometry
{
template<typename RealType>
TOrientedBox3 < RealType > UE::Geometry::FitOrientedBox3Points
(
TArrayView < const TVector < RealType > > Points,
EBox3FitCriteria FitMethod,
RealType SameNormalTolerance,
FProgressCancel * ProgressCancel
)
}
}
A best-fit TOrientedBox3 that contains the points
Parameters
| Name | Remarks |
|---|---|
| Points | The points to fit |
| FitMethod | What criteria to optimize |
| SameNormalTolerance | Tolerance for considering normals the same when choosing projection directions. If > 0, can save some computation if the convex hull is very large. |