UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Geometry::FMeshDescriptionUVsToDynamicMesh Class Reference

#include <MeshDescriptionUVsToDynamicMesh.h>

Public Member Functions

MESHCONVERSION_API int32 GetNumUVLayers (const FMeshDescription *InputMeshDescription) const
 
MESHCONVERSION_API TSharedPtr< FDynamicMesh3GetUVMesh (const FMeshDescription *InputMeshDescription)
 
MESHCONVERSION_API void BakeBackUVsFromUVMesh (const FDynamicMesh3 *DynamicUVMesh, FMeshDescription *OutputMeshDescription) const
 

Public Attributes

int32 UVLayerIndex = 0
 
double ScaleFactor = 1000
 

Detailed Description

Converter that gives a specific UV layer of a provided mesh description and turns it into a flat FDynamicMesh, with vertices corresponding to UV elements, and their positions corresponding to those elements' UV coordinate values. The triangle id's in the dynamic mesh will correspond to original triangles of the mesh.

The converter can also bake back such a dynamic mesh to an existing mesh description UV layer after the dynamic mesh has been modified. The important part is that the triangle IDs continue to correspond to each other. This means that while welding/splitting vertices in the dynamic mesh is ok, adding or removing triangles is not.

The converter prefers shared UVs when they are available, though it will populate instanced UVs as well on the way back.

Member Function Documentation

◆ BakeBackUVsFromUVMesh()

void FMeshDescriptionUVsToDynamicMesh::BakeBackUVsFromUVMesh ( const FDynamicMesh3 DynamicUVMesh,
FMeshDescription OutputMeshDescription 
) const

◆ GetNumUVLayers()

int32 FMeshDescriptionUVsToDynamicMesh::GetNumUVLayers ( const FMeshDescription InputMeshDescription) const

◆ GetUVMesh()

TSharedPtr< FDynamicMesh3 > FMeshDescriptionUVsToDynamicMesh::GetUVMesh ( const FMeshDescription InputMeshDescription)

Member Data Documentation

◆ ScaleFactor

double UE::Geometry::FMeshDescriptionUVsToDynamicMesh::ScaleFactor = 1000

◆ UVLayerIndex

int32 UE::Geometry::FMeshDescriptionUVsToDynamicMesh::UVLayerIndex = 0

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