![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MeshDescriptionUVsToDynamicMesh.h>
Public Member Functions | |
| MESHCONVERSION_API int32 | GetNumUVLayers (const FMeshDescription *InputMeshDescription) const |
| MESHCONVERSION_API TSharedPtr< FDynamicMesh3 > | GetUVMesh (const FMeshDescription *InputMeshDescription) |
| MESHCONVERSION_API void | BakeBackUVsFromUVMesh (const FDynamicMesh3 *DynamicUVMesh, FMeshDescription *OutputMeshDescription) const |
Public Attributes | |
| int32 | UVLayerIndex = 0 |
| double | ScaleFactor = 1000 |
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.
| void FMeshDescriptionUVsToDynamicMesh::BakeBackUVsFromUVMesh | ( | const FDynamicMesh3 * | DynamicUVMesh, |
| FMeshDescription * | OutputMeshDescription | ||
| ) | const |
| int32 FMeshDescriptionUVsToDynamicMesh::GetNumUVLayers | ( | const FMeshDescription * | InputMeshDescription | ) | const |
| TSharedPtr< FDynamicMesh3 > FMeshDescriptionUVsToDynamicMesh::GetUVMesh | ( | const FMeshDescription * | InputMeshDescription | ) |
| double UE::Geometry::FMeshDescriptionUVsToDynamicMesh::ScaleFactor = 1000 |
| int32 UE::Geometry::FMeshDescriptionUVsToDynamicMesh::UVLayerIndex = 0 |