Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Solvers
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Solvers/MeshSmoothing.h |
| Include | #include "Solvers/MeshSmoothing.h" |
namespace UE
{
namespace MeshDeformation
{
void UE&58;&58;MeshDeformation&58;&58;ComputeSmoothing_Forward
&40;
bool bUniformWeightScheme,
bool bSmoothBoundary,
const FDynamicMesh3 & OriginalMesh,
TFunctionRef< double(int VID, bool bBoundary)> GetSmoothingAlpha,
const int32 NumIterations,
TArray< FVector3d > & PositionArray
&41;
}
}
Remarks
Simple iterative smoothing with an optional weight map Each iteration Lerps towards the weighted neighbor centroid by the GetSmoothingAlpha amount
Parameters
| Name | Description |
|---|---|
| bUniformWeightScheme | If true, uses uniform weights for centroid; else uses cotan weights |
| bSmoothBoundary | If true, boundary vertices are smoothed (toward the centroid of neighboring boundary vertices); else boundary is fixed |
| OriginalMesh | The source mesh, used for topology |
| GetSmoothingAlpha | The amount to lerp each vertex towards the centroid, per iteration |
| NumIterations | Number of iterations to smooth |
| PositionsArray | Vertex positions (input and output) |