Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/FMeshWeights > API/Plugins/DynamicMesh/FMeshWeights/CotanCentroidSafe
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/MeshWeights.h |
| Include | #include "MeshWeights.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/MeshWeights.cpp |
static FVector3d CotanCentroidSafe
&40;
const FDynamicMesh3 & Mesh,
int32 VertexIndex,
TFunctionRef< FVector3d(int32)> VertexPositionFunc,
double DegenerateTol,
bool &42; bFailedToUniform
&41;
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
| Name | 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 |