Navigation
API > API/Plugins > API/Plugins/MeshModelingToolsEditorOnly
Why does this exist? It is important for the mesh selection algorithms to operate on a mesh that is free from floating vertices, but changing the topology of the mesh the tool is working on causes issue with the non-manifold mapping, UV attributes and possibly other things
So, rather than track these issues down individually, we leave the original mesh topology intact, and operate on a cleaned submesh. When the tool exits, we copy the weight edits from the submesh to the full mesh. This means weights of the floating vertices cannot be edited, however they do not matter since they do not belong to any triangles they cannot be rendered
| Name | FCleanedEditMesh |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/MeshModelingToolsEditorOnly/Public/SkeletalMesh/SkinWeightsPaintTool.h |
| Include Path | #include "SkeletalMesh/SkinWeightsPaintTool.h" |
Syntax
struct FCleanedEditMesh
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCleanedEditMesh
(
const FDynamicMesh3& InDynamicMesh, |
SkeletalMesh/SkinWeightsPaintTool.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CleanedSubMesh | UE::Geometry::FDynamicSubmesh3 | SkeletalMesh/SkinWeightsPaintTool.h | ||
| CleanedSubMeshDescription | TSharedPtr< FMeshDescription > | SkeletalMesh/SkinWeightsPaintTool.h | ||
| OriginalDynamicMesh | FDynamicMesh3 | SkeletalMesh/SkinWeightsPaintTool.h | ||
| OriginalMeshDescription | FMeshDescription | SkeletalMesh/SkinWeightsPaintTool.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CopyWeightsToOriginalMesh
(
const FName InProfile |
SkeletalMesh/SkinWeightsPaintTool.h | ||
FDynamicMesh3 & GetEditableMesh() |
SkeletalMesh/SkinWeightsPaintTool.h | ||
FMeshDescription & GetEditableMeshDescription() |
SkeletalMesh/SkinWeightsPaintTool.h | ||
FDynamicMesh3 & GetOriginalMesh() |
SkeletalMesh/SkinWeightsPaintTool.h | ||
FMeshDescription & GetOriginalMeshDescription() |
SkeletalMesh/SkinWeightsPaintTool.h | ||
int32 GetOriginalVertexID
(
const int32 InCleanedVertexId |
Returns the VertexID on the original mesh | SkeletalMesh/SkinWeightsPaintTool.h |