UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FMeshVertexChangeBuilder Class Reference

#include <MeshVertexChange.h>

Public Member Functions

GEOMETRYFRAMEWORK_API FMeshVertexChangeBuilder ()
 
GEOMETRYFRAMEWORK_API FMeshVertexChangeBuilder (EMeshVertexChangeComponents Components)
 
GEOMETRYFRAMEWORK_API void SaveVertexInitial (const FDynamicMesh3 *Mesh, int32 VertexID)
 
GEOMETRYFRAMEWORK_API void SaveVertexFinal (const FDynamicMesh3 *Mesh, int32 VertexID)
 
template<typename Enumerable >
void SaveVertices (const FDynamicMesh3 *Mesh, Enumerable Enum, bool bInitial)
 
GEOMETRYFRAMEWORK_API void SaveOverlayNormals (const FDynamicMesh3 *Mesh, const TArray< int32 > &ElementIDs, bool bInitial)
 
GEOMETRYFRAMEWORK_API void SaveOverlayNormals (const FDynamicMesh3 *Mesh, const TSet< int32 > &ElementIDs, bool bInitial)
 
GEOMETRYFRAMEWORK_API void SaveOverlayUVs (const FDynamicMesh3 *Mesh, const TArray< int32 > &ElementIDs, bool bInitial)
 
GEOMETRYFRAMEWORK_API void SaveOverlayUVs (const FDynamicMesh3 *Mesh, const TSet< int32 > &ElementIDs, bool bInitial)
 
GEOMETRYFRAMEWORK_API void UpdateVertex (int32 VertexID, const FVector3d &OldPosition, const FVector3d &NewPosition)
 
GEOMETRYFRAMEWORK_API void UpdateVertexColor (int32 VertexID, const FVector3f &OldColor, const FVector3f &NewColor)
 

Public Attributes

TUniquePtr< FMeshVertexChangeChange
 
TMap< int32, int32SavedVertices
 
bool bSavePositions = true
 
bool bSaveColors = false
 
bool bSaveOverlayNormals = false
 
TMap< int32, int32SavedNormalElements
 
bool bSaveOverlayUVs = false
 
TMap< int32, int32SavedUVElements
 
TUniqueFunction< void(int32, int32)> OnNewVertexSaved = nullptr
 

Protected Member Functions

GEOMETRYFRAMEWORK_API void UpdateVertexFinal (int32 VertexID, const FVector3d &NewPosition)
 
GEOMETRYFRAMEWORK_API void UpdateOverlayNormal (int32 ElementID, const FVector3f &OldNormal, const FVector3f &NewNormal)
 
GEOMETRYFRAMEWORK_API void UpdateOverlayNormalFinal (int32 ElementID, const FVector3f &NewNormal)
 
GEOMETRYFRAMEWORK_API void UpdateOverlayUV (int32 ElementID, const FVector2f &OldUV, const FVector2f &NewUV)
 
GEOMETRYFRAMEWORK_API void UpdateOverlayUVFinal (int32 ElementID, const FVector2f &NewUV)
 

Detailed Description

FMeshVertexChangeBuilder can be used to construct a FMeshVertexChange.

Constructor & Destructor Documentation

◆ FMeshVertexChangeBuilder() [1/2]

FMeshVertexChangeBuilder::FMeshVertexChangeBuilder ( )

◆ FMeshVertexChangeBuilder() [2/2]

FMeshVertexChangeBuilder::FMeshVertexChangeBuilder ( EMeshVertexChangeComponents  Components)
explicit

Member Function Documentation

◆ SaveOverlayNormals() [1/2]

GEOMETRYFRAMEWORK_API void FMeshVertexChangeBuilder::SaveOverlayNormals ( const FDynamicMesh3 *  Mesh,
const TArray< int32 > &  ElementIDs,
bool  bInitial 
)

◆ SaveOverlayNormals() [2/2]

GEOMETRYFRAMEWORK_API void FMeshVertexChangeBuilder::SaveOverlayNormals ( const FDynamicMesh3 *  Mesh,
const TSet< int32 > &  ElementIDs,
bool  bInitial 
)

◆ SaveOverlayUVs() [1/2]

GEOMETRYFRAMEWORK_API void FMeshVertexChangeBuilder::SaveOverlayUVs ( const FDynamicMesh3 *  Mesh,
const TArray< int32 > &  ElementIDs,
bool  bInitial 
)

◆ SaveOverlayUVs() [2/2]

GEOMETRYFRAMEWORK_API void FMeshVertexChangeBuilder::SaveOverlayUVs ( const FDynamicMesh3 *  Mesh,
const TSet< int32 > &  ElementIDs,
bool  bInitial 
)

◆ SaveVertexFinal()

void FMeshVertexChangeBuilder::SaveVertexFinal ( const FDynamicMesh3 Mesh,
int32  VertexID 
)

◆ SaveVertexInitial()

void FMeshVertexChangeBuilder::SaveVertexInitial ( const FDynamicMesh3 Mesh,
int32  VertexID 
)

◆ SaveVertices()

template<typename Enumerable >
void FMeshVertexChangeBuilder::SaveVertices ( const FDynamicMesh3 *  Mesh,
Enumerable  Enum,
bool  bInitial 
)

◆ UpdateOverlayNormal()

void FMeshVertexChangeBuilder::UpdateOverlayNormal ( int32  ElementID,
const FVector3f OldNormal,
const FVector3f NewNormal 
)
protected

◆ UpdateOverlayNormalFinal()

void FMeshVertexChangeBuilder::UpdateOverlayNormalFinal ( int32  ElementID,
const FVector3f NewNormal 
)
protected

◆ UpdateOverlayUV()

void FMeshVertexChangeBuilder::UpdateOverlayUV ( int32  ElementID,
const FVector2f OldUV,
const FVector2f NewUV 
)
protected

◆ UpdateOverlayUVFinal()

void FMeshVertexChangeBuilder::UpdateOverlayUVFinal ( int32  ElementID,
const FVector2f NewUV 
)
protected

◆ UpdateVertex()

void FMeshVertexChangeBuilder::UpdateVertex ( int32  VertexID,
const FVector3d OldPosition,
const FVector3d NewPosition 
)

◆ UpdateVertexColor()

void FMeshVertexChangeBuilder::UpdateVertexColor ( int32  VertexID,
const FVector3f OldColor,
const FVector3f NewColor 
)

◆ UpdateVertexFinal()

void FMeshVertexChangeBuilder::UpdateVertexFinal ( int32  VertexID,
const FVector3d NewPosition 
)
protected

Member Data Documentation

◆ bSaveColors

bool FMeshVertexChangeBuilder::bSaveColors = false

◆ bSaveOverlayNormals

bool FMeshVertexChangeBuilder::bSaveOverlayNormals = false

◆ bSaveOverlayUVs

bool FMeshVertexChangeBuilder::bSaveOverlayUVs = false

◆ bSavePositions

bool FMeshVertexChangeBuilder::bSavePositions = true

◆ Change

TUniquePtr<FMeshVertexChange> FMeshVertexChangeBuilder::Change

◆ OnNewVertexSaved

TUniqueFunction<void(int32, int32)> FMeshVertexChangeBuilder::OnNewVertexSaved = nullptr

If set, this function is called whenever a newly-seen VertexID is saved, parameters are (VertexID, Index) into saved-vertices array

◆ SavedNormalElements

TMap<int32, int32> FMeshVertexChangeBuilder::SavedNormalElements

◆ SavedUVElements

TMap<int32, int32> FMeshVertexChangeBuilder::SavedUVElements

◆ SavedVertices

TMap<int32, int32> FMeshVertexChangeBuilder::SavedVertices

The documentation for this class was generated from the following files: