FMeshVertexChangeBuilder

[FMeshVertexChangeBuilder](API\Runtime\GeometryFramework\Changes\FMeshVertexChangeBuilder) can be used to construct a [FMeshVertexChange](API\Runtime\GeometryFramework\Changes\FMeshVertexChange).

Choose your operating system:

Windows

macOS

Linux

References

Module

GeometryFramework

Header

/Engine/Source/Runtime/GeometryFramework/Public/Changes/MeshVertexChange.h

Include

#include "Changes/MeshVertexChange.h"

Syntax

class FMeshVertexChangeBuilder

Remarks

FMeshVertexChangeBuilder can be used to construct a FMeshVertexChange.

Variables

Name Description

Public variable

bool

 

bSaveColors

Public variable

bool

 

bSaveOverlayNormals

Public variable

bool

 

bSavePositions

Public variable

TUniquePtr< FMe...

 

Change

Public variable

TUniqueFunction...

 

OnNewVertexSaved

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

Public variable

TMap< int32, in...

 

SavedNormalElements

Public variable

TMap< int32, in...

 

SavedVertices

Constructors

Functions

Name Description

Public function

void

 

SaveOverlayNormals

(
    const FDynamicMesh3* Mesh,
    const TArray< int32 >& ElementIDs,
    bool bInitial
)

Public function

void

 

SaveOverlayNormals

(
    const FDynamicMesh3* Mesh,
    const TSet< int32 >& ElementIDs,
    bool bInitial
)

Public function

void

 

SaveVertexFinal

(
    const FDynamicMesh3* Mesh,
    int32 VertexID
)

Public function

void

 

SaveVertexInitial

(
    const FDynamicMesh3* Mesh,
    int32 VertexID
)

Public function

void

 

SaveVertices

(
    const FDynamicMesh3* Mesh,
    Enumerable Enum,
    bool bInitial
)

Protected function

void

 

UpdateOverlayNormal

(
    int32 ElementID,
    const FVector3f& OldNormal,
    const FVector3f& NewNormal
)

Protected function

void

 

UpdateOverlayNormalFinal

(
    int32 ElementID,
    const FVector3f& NewNormal
)

Public function

void

 

UpdateVertex

(
    int32 VertexID,
    const FVector3d& OldPosition,
    const FVector3d& NewPosition
)

Currently only used in vertex sculpt tool. cannot be used if bSaveColors = true

Public function

void

 

UpdateVertexColor

(
    int32 VertexID,
    const FVector3f& OldColor,
    const FVector3f& NewColor
)

Currently only used in element paint tool. Can only be used if bSaveColors=true and bSavePositions=false

Protected function

void

 

UpdateVertexFinal

(
    int32 VertexID,
    const FVector3d& NewPosition
)