Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/CompGeom
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/CompGeom/FitOrientedBox2.h |
| Include | #include "CompGeom/FitOrientedBox2.h" |
namespace UE
{
namespace Geometry
{
template<typename RealType>
TOrientedBox2< RealType > UE&58;&58;Geometry&58;&58;FitOrientedBox2ConvexHull
&40;
int32 NumPts,
TFunctionRef< TVector2< RealType >(int32)> GetHullPt,
EBox2FitCriteria FitMethod
&41;
}
}
Remarks
Use the rotating calipers algorithm to find a best-fit oriented bounding box of a convex hull. A best-fit TOrientedBox2 that contains the points
Parameters
| Name | Description |
|---|---|
| NumPts | Number of points in the convex hull |
| GetHullPt | Function(hull point index) -> hull point |
| FitMethod | What criteria to optimize |