UE::Geometry::IsBoxMesh

Detect if input Mesh is a meshed box, and if so return analytic box in BoxOut.

Windows
MacOS
Linux

References

Module

DynamicMesh

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

Syntax

namespace UE
{
    namespace Geometry
    {
        bool UE::Geometry::IsBoxMesh
        (
            const FDynamicMesh3 & Mesh,
            FOrientedBox3d & BoxOut,
            double AngleToleranceDeg
        )
    }
}

Remarks

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.

Returns

true if mesh is a Box and BoxOut is initialized

Parameters

Parameter

Description

AngleToleranceDeg

normals are allowed to deviate by this amount and still be considered coplanar

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss