Navigation
API > API/Plugins > API/Plugins/DynamicMesh
Transfers UVs from a low-resolution mesh to a high-resolution mesh. The source mesh is expected to be a simplified version of the destination mesh, simplified using existing vertices only. Thus, correspondences are found by position.
| Name | FDynamicMeshUVTransfer |
| Type | class |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Parameterization/UVTransfer.h |
| Include Path | #include "Parameterization/UVTransfer.h" |
Syntax
class FDynamicMeshUVTransfer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FDynamicMeshUVTransfer
(
const FDynamicMesh3* SourceMeshIn, |
Parameterization/UVTransfer.h | ||
FDynamicMeshUVTransfer
(
const FDynamicMesh3* SourceMeshIn, |
Parameterization/UVTransfer.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bClearExistingSeamsInDestination | bool | If true, existing seams in the destination are removed before adding new ones. | Parameterization/UVTransfer.h | |
| DestinationMesh | FDynamicMesh3 * | Parameterization/UVTransfer.h | ||
| DestUVLayerIndex | int | Parameterization/UVTransfer.h | ||
| PathSimilarityWeight | double | Tuning parameter to make found destination paths follow source edges closer. | Parameterization/UVTransfer.h | |
| SourceMesh | const FDynamicMesh3 * | Parameterization/UVTransfer.h | ||
| UVLayerIndex | int | Parameterization/UVTransfer.h | ||
| VertexSearchCellSize | double | Cell size used in hash grid when finding correspndence (only affects performance) | Parameterization/UVTransfer.h | |
| VertexSearchDistance | double | How far to search for a matching vertex on the destination mesh. | Parameterization/UVTransfer.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DestinationSelectionTids | TSet< int32 > * | Parameterization/UVTransfer.h | ||
| DestOverlay | FDynamicMeshUVOverlay * | Parameterization/UVTransfer.h | ||
| HashGrid | TUniquePtr< TPointHashGrid3< int32, double > > | Used for getting a correspondence between low res mesh and high res mesh. | Parameterization/UVTransfer.h | |
| MinimalPathSearchDistance | double | Minimal max distance to use in looking for corresponding paths, in case the source edge is near-degenerate. | Parameterization/UVTransfer.h | |
| PathLengthToleranceMultiplier | double | This gets multiplied by (SourceEdgeLength + PathSimilarityWeight * PathSimilarityMetric) to limit the max search distance when looking for corresponding paths. | Parameterization/UVTransfer.h | |
| SourceBoundaryElements | TSet< int32 > | Parameterization/UVTransfer.h | ||
| SourceEidToDestinationEndpointEidsVids | TMap< int32, TPair< FIndex2i, FIndex2i > > | Parameterization/UVTransfer.h | ||
| SourceOverlay | const FDynamicMeshUVOverlay * | Parameterization/UVTransfer.h | ||
| SourceSelectionTids | TSet< int32 > * | TODO: Expose and test selection-constrained transfers when support for selecting elements on multiple meshes is available. | Parameterization/UVTransfer.h | |
| SourceVidToDestinationVid | TMap< int32, int32 > | Parameterization/UVTransfer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool TransferSeams
(
FProgressCancel* Progress |
Parameterization/UVTransfer.h | ||
bool TransferSeamsAndUVs
(
FProgressCancel* Progress |
Parameterization/UVTransfer.h |