Navigation
API > API/Plugins > API/Plugins/DynamicMesh
Collection of algorithms for smoothing bone weights. Bone weight data is fetched using the TBoneWeightsDataSource which is implemented by the caller to match their custom data storage of bone weights.
Example usage:
// Mesh whose bone weights we are smoothing FDynamicMesh SourceMesh = ... ;
// The caller should create a subclass of TBoneWeightsDataSource that implements its interface TUniquePtr
// Setup the smoothing operator TSmoothBoneWeights SmoothBoneWeights(&SourceMesh, DataSource.Get());
// Array of vertex IDs to apply smoothing to TArray
// Run the operator const float SmoothStrength = 0.2; if (SmoothBoneWeights.Validate() == EOperationValidationResult::Ok) { for (const int32 VertexID : VerticesToSmooth) { TMap
| Name | TSmoothBoneWeights |
| Type | class |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/SmoothBoneWeights.h |
| Include Path | #include "Operations/SmoothBoneWeights.h" |
Syntax
template<typename BoneIndexType, typename BoneWeightType>
class TSmoothBoneWeights
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSmoothBoneWeights
(
const FDynamicMesh3* InSourceMesh, |
Operations/SmoothBoneWeights.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~TSmoothBoneWeights() |
Operations/SmoothBoneWeights.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MinimumWeightThreshold | BoneWeightType | Only consider the weights above the threshold. | Operations/SmoothBoneWeights.h | |
| Progress | FProgressCancel * | Optional Inputs Set this to be able to cancel the running operation. | Operations/SmoothBoneWeights.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool SmoothWeightsAtVertex
(
const int32 VertexID, |
Compute smoothed weights at a vertex and return the result. | Operations/SmoothBoneWeights.h | |
virtual EOperationValidationResult Validate() |
Operations/SmoothBoneWeights.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool Cancelled() |
Operations/SmoothBoneWeights.h |