FDynamicMeshChange

[FDynamicMeshChange](API\Plugins\DynamicMesh\FDynamicMeshChange) stores a "change" in a [FDynamicMesh3](API\Plugins\DynamicMesh\FDynamicMesh3), which in this context means the replacement of one set of triangles with a second set, that may have different vertices/attributes.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/DynamicMeshChangeTracker.h

Include

#include "DynamicMeshChangeTracker.h"

Syntax

class FDynamicMeshChange

Remarks

FDynamicMeshChange stores a "change" in a FDynamicMesh3, which in this context means the replacement of one set of triangles with a second set, that may have different vertices/attributes. The change can be applied and reverted via Apply()

Construction of a well-formed FDynamicMeshChange is quite complex and it is strongly suggested that you do so via FDynamicMeshChangeTracker

Variables

Destructors

Name Description

Public function

~FDynamicMeshChange()

Functions

Name Description

Public function Const

bool

 

Apply

(
    FDynamicMesh3* Mesh,
    bool bRevert
)

Apply or Revert this change using the given Mesh

Protected function Const

void

 

ApplyReplaceChange

(
    FDynamicMesh3* Mesh,
    const TArray< FChangeTriangle >& R...,
    const TArray< FChangeVertex >& Ins...,
    const TArray< FChangeTriangle >& I...
)

Public function

void

 

AttachAttributeChanges

Attach an attribute change set to this mesh change, which will the be applied/reverted automatically

Public function Const

void

 

CheckValidity

(
    EValidityCheckFailMode FailMode
)

Run self-validity checks on internal data structures to test if change is well-formed

Public function Const

void

 

GetSavedTriangleList

(
    TArray< int >& TrianglesOut,
    bool bInitial
)

Store IDs of saved triangles in TrianglesOut.

Public function

bool

 

HasSavedVertex

(
    int VertexID
)

Public function

void

 

SaveInitialTriangle

(
    const FDynamicMesh3* Mesh,
    int TriangleID
)

Store the initial state of a triangle

Public function

void

 

SaveInitialVertex

(
    const FDynamicMesh3* Mesh,
    int VertexID
)

Store the initial state of a vertex

Public function

void

 

StoreFinalTriangle

(
    const FDynamicMesh3* Mesh,
    int TriangleID
)

Store the final state of a triangle

Public function

void

 

StoreFinalVertex

(
    const FDynamicMesh3* Mesh,
    int VertexID
)

Store the final state of a vertex

Public function Const

void

 

VerifySaveState()

Do (limited) sanity checks on this MeshChange to ensure it is well-formed

Classes

Name

Description

Protected struct

FChangeTriangle

Protected struct

FChangeVertex

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss