Module |
|
Header |
/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/ShapeApproximation/ShapeDetection3.h |
Include |
#include "ShapeApproximation/ShapeDetection3.h" |
Source |
/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Private/ShapeApproximation/ShapeDetection3.cpp |
namespace UE
{
namespace Geometry
{
bool UE::Geometry::IsBoxMesh
(
const FDynamicMesh3 & Mesh,
FOrientedBox3d & BoxOut,
double AngleToleranceDeg
)
}
}
Detect if input Mesh is a meshed box, and if so return analytic box in BoxOut. Clusters face normals, looking to find 6 unique normals grouped into 3 opposite-direction pairs. If this configuraiton is found, computing minimal box is trivial.
true if mesh is a Box and BoxOut is initialized
Parameter |
Description |
---|---|
AngleToleranceDeg |
normals are allowed to deviate by this amount and still be considered coplanar |