Navigation
API > API/Plugins > API/Plugins/DynamicMesh
Subclass of TSmoothBoneWeights for dealing with smoothing of bone weights stored in the FDynamicMeshVertexSkinWeightsAttribute.
Example usage:
// Mesh whose bone weights we are smoothing FDynamicMesh SourceMesh = ... ;
// Setup the smoothing operator FSmoothDynamicMeshVertexSkinWeights SmoothBoneWeights(&SourceMesh, FSkeletalMeshAttributes::DefaultSkinWeightProfileName);
// 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) { SmoothBoneWeights.SmoothWeightsAtVertex(VertexID, SmoothStrength); } }
| Name | FSmoothDynamicMeshVertexSkinWeights |
| Type | class |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/SmoothBoneWeights.h |
| Include Path | #include "Operations/SmoothBoneWeights.h" |
Syntax
class FSmoothDynamicMeshVertexSkinWeights : public UE::Geometry::TSmoothBoneWeights< FBoneIndexType, float >
Inheritance Hierarchy
- TSmoothBoneWeights → FSmoothDynamicMeshVertexSkinWeights
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSmoothDynamicMeshVertexSkinWeights
(
const FDynamicMesh3* InSourceMesh, |
Operations/SmoothBoneWeights.h | ||
FSmoothDynamicMeshVertexSkinWeights
(
const FDynamicMesh3* InSourceMesh, |
Operations/SmoothBoneWeights.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FSmoothDynamicMeshVertexSkinWeights() |
Operations/SmoothBoneWeights.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MaxNumInfluences | int32 | During the smoothing, only use this number of influences per vertex. | Operations/SmoothBoneWeights.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool SmoothWeightsAtVertex
(
const int32 VertexID, |
Compute smoothed weights at a vertex and write the result into FDynamicMeshVertexSkinWeightsAttribute passed upon construction. | Operations/SmoothBoneWeights.h | |
bool SmoothWeightsAtVerticesWithinDistance
(
const TArray< int32 >& Vertices, |
Compute smoothed weights at vertices and neighbors within distance and write the result into FDynamicMeshVertexSkinWeightsAttribute passed upon construction. | Operations/SmoothBoneWeights.h |
Overridden from TSmoothBoneWeights
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual EOperationValidationResult Validate() |
Operations/SmoothBoneWeights.h |