Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Operations > API/Plugins/DynamicMesh/Operations/FTransferBoneWeights > API/Plugins/DynamicMesh/Operations/FTransferBoneWeights/TransferWeightsToPoint
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/TransferBoneWeights.h |
| Include | #include "Operations/TransferBoneWeights.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/Operations/TransferBoneWeights.cpp |
template<typename BoneIndexType, typename BoneFloatWeightType, typename PosVectorType, typename NormalVectorType>
bool TransferWeightsToPoint
&40;
TArray< BoneIndexType > & OutBones,
TArray< BoneFloatWeightType > & OutWeights,
const UE::Math::TVector< PosVectorType > & InPoint,
const TMap< FName, uint16 > &42; TargetBoneToIndex,
const UE::Math::TVector< NormalVectorType > & InNormal
&41;
Remarks
Compute the bone weights for a given point using the ETransferBoneWeightsMethod::ClosestPointOnSurface algorithm.
Add specialization in the source file for template types you want to use. Currently supporting int for BoneIndexType and float for BoneFloatWeightType, PosVectorType, NormalVectorType true if the algorithm succeeds, false if it failed to find the matching point or was canceled by the user.
Parameters
| Name | Description |
|---|---|
| OutBones | Array of bone indices. Array size is equal to the number of bone influences. |
| OutWeights | Array of bone weights. Array size is equal to the number of bone influences. |
| InPoint | Point for which we are computing the bone weight. |
| TargetBoneToIndex | Optional map from the bone names to the bone indices of the target skeleton. If null, the bone indices of the skinning weights will not be re-indexed after the transfer. |
| InNormal | Normal at the input point. Should be set if NormalThreshold >= 0. |