UE::Geometry::IsCapsuleMesh

Detect if input Mesh is a meshed approximation of an analytic Capsule, and if so return best guess in CapsuleOut.

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::IsCapsuleMesh
        (
            const FDynamicMesh3 & Mesh,
            FCapsule3d & CapsuleOut,
            double RelativeDeviationTol
        )
    }
}

Remarks

Detect if input Mesh is a meshed approximation of an analytic Capsule, and if so return best guess in CapsuleOut. Fits a capsule to input points, then measures chordal deviation of edge midpoints.

Returns

true if mesh is a Capsule and CapsuleOut is initialized

Parameters

Parameter

Description

RelativeDeviationTol

distances from edge midpoints to capsule surface are allowed to deviate by 2*Radius*RelativeDeviationTol

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