UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SkeletalMeshOperations.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "BoneIndices.h"
6#include "Containers/Array.h"
7#include "CoreMinimal.h"
8#include "HAL/Platform.h"
9#include "Logging/LogMacros.h"
10#include "MeshTypes.h"
12
13struct FMeshDescription;
14
15
17
18
19
21{
22public:
33
35
53 );
54
67 );
68
86 );
87
106 );
107
127 );
128
148 );
149
167 bool bInWriteBonePose = false
168 );
169
174
184
193 static SKELETALMESHDESCRIPTION_API void ValidateFixComputeMeshDescriptionData(FMeshDescription& MeshDescription, const TArray<uint32>& FaceSmoothingMasks, int32 LODIndex, const bool bComputeWeightedNormals, const FString& SkeletalMeshPath);
194
204
215};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DECLARE_LOG_CATEGORY_EXTERN(CategoryName, DefaultVerbosity, CompileTimeVerbosity)
Definition LogMacros.h:361
Definition NameTypes.h:617
Definition SkeletalMeshOperations.h:21
static SKELETALMESHDESCRIPTION_API void ValidateFixComputeMeshDescriptionData(FMeshDescription &MeshDescription, const TArray< uint32 > &FaceSmoothingMasks, int32 LODIndex, const bool bComputeWeightedNormals, const FString &SkeletalMeshPath)
Definition SkeletalMeshOperations.cpp:1391
static SKELETALMESHDESCRIPTION_API bool RemapBoneIndicesOnSkinWeightAttribute(FMeshDescription &InMesh, TConstArrayView< int32 > InBoneIndexMapping)
Definition SkeletalMeshOperations.cpp:235
static SKELETALMESHDESCRIPTION_API bool CopySkinWeightAttributeFromMesh(const FMeshDescription &InSourceMesh, FMeshDescription &InTargetMesh, const FName InSourceProfile, const FName InTargetProfile, const TMap< int32, int32 > *SourceBoneIndexToTargetBoneIndexMap)
Definition SkeletalMeshOperations.cpp:119
static SKELETALMESHDESCRIPTION_API void ConvertHardEdgesToSmoothMasks(const FMeshDescription &InMeshDescription, TArray< uint32 > &OutSmoothMasks)
Definition SkeletalMeshOperations.cpp:1091
static SKELETALMESHDESCRIPTION_API bool GetPosedMesh(const FMeshDescription &InSourceMesh, FMeshDescription &OutTargetMesh, TConstArrayView< FTransform > InComponentSpaceTransforms, const FName InSkinWeightProfile=NAME_None, const TMap< FName, float > &InMorphTargetWeights={})
Definition SkeletalMeshOperations.cpp:738
static SKELETALMESHDESCRIPTION_API void AppendSkinWeight(const FMeshDescription &SourceMesh, FMeshDescription &TargetMesh, FSkeletalMeshAppendSettings &AppendSettings)
Definition SkeletalMeshOperations.cpp:69
static SKELETALMESHDESCRIPTION_API bool GetUnposedMesh(const FMeshDescription &InPosedMesh, const FMeshDescription &InRefMesh, TArray< FTransform > &RefBoneTransforms, FMeshDescription &OutUnposedMesh, TConstArrayView< FTransform > InComponentSpaceTransforms, const FName InSkinWeightProfile, const TMap< FName, float > &InMorphTargetWeights)
Definition SkeletalMeshOperations.cpp:956
static SKELETALMESHDESCRIPTION_API void ValidateAndFixInfluences(FMeshDescription &MeshDescription, bool &bOutInfluenceCountLimitHit)
Definition SkeletalMeshOperations.cpp:1434
static SKELETALMESHDESCRIPTION_API void FixVertexInstanceStructure(FMeshDescription &SourceMeshDescription, FMeshDescription &TargetMeshDescription, const TArray< uint32 > &SourceSmoothingMasks, TArray< uint32 > &TargetFaceSmoothingMasks)
Definition SkeletalMeshOperations.cpp:1148
static SKELETALMESHDESCRIPTION_API bool GetUnposedMeshInPlace(FMeshDescription &InOutTargetMesh, const FMeshDescription &InRefMesh, TArray< FTransform > &RefBoneTransforms, TConstArrayView< FTransform > InComponentSpaceTransforms, const FName InSkinWeightProfile, const TMap< FName, float > &InMorphTargetWeights, bool bInWriteBonePose=false)
Definition SkeletalMeshOperations.cpp:1026
static SKELETALMESHDESCRIPTION_API bool GetPosedMeshInPlace(FMeshDescription &InOutTargetMesh, TConstArrayView< FTransform > InComponentSpaceTransforms, const FName InSkinWeightProfile=NAME_None, const TMap< FName, float > &InMorphTargetWeights={}, bool bInSkipRecomputeNormalsTangents=false, bool bInWriteBonePose=false)
Definition SkeletalMeshOperations.cpp:810
static SKELETALMESHDESCRIPTION_API void ApplyRigToGeo(FMeshDescription &RigMeshDescription, FMeshDescription &GeoMeshDescription)
Definition SkeletalMeshOperations.cpp:1738
Definition StaticMeshOperations.h:47
Definition Array.h:670
Definition UnrealString.h.inl:34
@ false
Definition radaudio_common.h:23
Definition MeshDescription.h:94
Definition SkeletalMeshOperations.h:24
int32 SourceVertexIDOffset
Definition SkeletalMeshOperations.h:29
TArray< FBoneIndexType > SourceRemapBoneIndex
Definition SkeletalMeshOperations.h:30
bool bAppendVertexAttributes
Definition SkeletalMeshOperations.h:31
FSkeletalMeshAppendSettings()
Definition SkeletalMeshOperations.h:25