FMeshWeights::CotanCentroidSafe

Compute cotan-weighted centroid of a vertex one-ring, with some weight analysis/clamping to avoid vertices getting "stuck" in explicit integration/iterations.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/MeshWeights.h

Include

#include "MeshWeights.h"

Source

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Private/MeshWeights.cpp

Syntax

static FVector3d CotanCentroidSafe
(
    const FDynamicMesh3 & Mesh,
    int32 VertexIndex,
    TFunctionRef< FVector3d)> VertexPositionFunc,
    double DegenerateTol,
    bool * bFailedToUniform
)

Remarks

Compute cotan-weighted centroid of a vertex one-ring, with some weight analysis/clamping to avoid vertices getting "stuck" in explicit integration/iterations. If failure is detected, Uniform centroid is returned, which does cause some tangential flow

Parameters

Parameter

Description

DegenerateTol

if any weights are larger than this value, return uniform weights instead. Should be > 1.

bFailedToUniform

will be set to true if non-null and result was clamped

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