Choose your operating system:
Windows
macOS
Linux
Warnings
Currently only vertices that are part of saved triangles will be stored in the emitted FMeshChange!
Module |
|
Header |
/Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicMeshChangeTracker.h |
Include |
#include "DynamicMesh/DynamicMeshChangeTracker.h" |
class FDynamicMeshChangeTracker
FDynamicMeshChangeTracker tracks changes to a FDynamicMesh and returns a FDynamicMeshChange instance that represents this change and allows it to be reverted/reapplied. This is the top-level class you likely want to use to track mesh changes.
Call BeginChange() before making any changes to the mesh, then call SaveVertex() and SaveTriangle() before modifying the respective elements. Then call EndChange() to construct a FDynamicMeshChange that represents the mesh delta.
Currently only vertices that are part of saved triangles will be stored in the emitted FMeshChange!
Name | Description | ||
---|---|---|---|
|
AttribChangeTracker |
Active attribute tracker, if Mesh has attribute overlays |
|
|
Change |
Active change that is being constructed |
|
|
ChangedTriangles |
||
|
ChangedVertices |
||
|
MaxTriangleID |
||
|
MaxVertexID |
||
|
const FDynamicM... |
Mesh |
|
|
StartTriangles |
||
|
StartVertices |
Name | Description | |
---|---|---|
|
FDynamicMeshChangeTracker ( |
Name | Description | |
---|---|---|
|
~FDynamicMeshChangeTracker() |
Name | Description | ||
---|---|---|---|
|
BeginChange() |
Initialize the change-tracking process |
|
|
TUniquePtr< ... |
EndChange() |
Construct a change object that represents the delta between the Begin and End states |
|
SaveEdge |
Save necessary information about an edge before it is modified |
|
|
SaveTriangle |
Save necessary information about a triangle before it is modified |
|
|
SaveTriangles ( |
Save necessary information about a set of triangles before they are modified |
|
|
SaveTrianglesAndNeighbourTris ( |
Save necessary information about a set of triangles before they are modified, and also include any direct triangle neighbours |
|
|
SaveVertex ( |
Currently EndChange() only stores vertices that are part of modified triangles. |
|
|
SaveVertexOneRingTriangles |
Save necessary information about a set of triangles in one-ring of a vertex |
|
|
SaveVertexOneRingTriangles ( |
Save necessary information about a set of triangles in one-rings of a set of vertices |
|
|
SaveVertices ( |
Save necessary information about a set of vertices before they are modified |
|
|
VerifySaveState() |
Do (limited) sanity checking to make sure that the change is well-formed |