Module |
|
Header |
/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/MeshWeights.h |
Include |
#include "MeshWeights.h" |
Source |
/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Private/MeshWeights.cpp |
static FVector3d CotanCentroidSafe
(
const FDynamicMesh3 & Mesh,
int32 VertexIndex,
TFunctionRef< FVector3d)> VertexPositionFunc,
double DegenerateTol,
bool * bFailedToUniform
)
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
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 |