Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Operations
Inheritance Hierarchy
- TSmoothBoneWeights
- FSmoothDynamicMeshVertexSkinWeights
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/SmoothBoneWeights.h |
| Include | #include "Operations/SmoothBoneWeights.h" |
Syntax
template<typename BoneIndexType, typename BoneWeightType>
class TSmoothBoneWeights
Remarks
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
Variables
| Type | Name | Description | |
|---|---|---|---|
| TBoneWeightsDataSource< BoneIndexType, BoneWeightType > * | DataSource | Data source supplied by the caller. | |
| BoneWeightType | MinimumWeightThreshold | Only consider the weights above the threshold. | |
| FProgressCancel * | Progress | Optional InputsSet this to be able to cancel the running operation. | |
| const FDynamicMesh3 * | SourceMesh |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TSmoothBoneWeights
(
const FDynamicMesh3* InSourceMesh, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Cancelled () |
||
| bool | SmoothWeightsAtVertex
(
const int32 VertexID, |
Compute smoothed weights at a vertex and return the result. | |
| EOperationValidationResult | Validate () |