Navigation
API > API/Plugins > API/Plugins/DynamicMesh
FDynamicMeshUVPacker implements various strategies for packing UV islands in a UV Overlay. The island topology and UV unwraps must already be created, this class simply scales/rotates/translates the islands to fit.
| Name | FDynamicMeshUVPacker |
| Type | class |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Parameterization/MeshUVPacking.h |
| Include Path | #include "Parameterization/MeshUVPacking.h" |
Syntax
class FDynamicMeshUVPacker
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FDynamicMeshUVPacker
(
FDynamicMeshUVOverlay* UVOverlay |
Parameterization/MeshUVPacking.h | ||
FDynamicMeshUVPacker
(
FDynamicMeshUVOverlay* UVOverlay, |
Parameterization/MeshUVPacking.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bAllowFlips | bool | If true, islands can be flipped in addition to rotate/translate/scale | Parameterization/MeshUVPacking.h | |
| bPreserveRotation | bool | If true, original island rotation is maintained during any packing process. | Parameterization/MeshUVPacking.h | |
| bPreserveScale | bool | If true, original island scale is maintained during any packing process. | Parameterization/MeshUVPacking.h | |
| bScaleIslandsByWorldSpaceTexelRatio | bool | Attempt to rescale islands to match texel-to-world-space ratio across islands, based on ratio of World- and UV-space edge lengths | Parameterization/MeshUVPacking.h | |
| GutterSize | float | Thickness of gutter/border in pixel dimensions. Not supported by all packing methods | Parameterization/MeshUVPacking.h | |
| TextureResolution | int32 | Resolution of the target texture. This is used to convert pixel gutter/border thickness to UV space | Parameterization/MeshUVPacking.h | |
| TidsToRepack | TUniquePtr< TArray< int32 > > | The explicit triangle ids to repack, repack all triangles if null | Parameterization/MeshUVPacking.h | |
| UVOverlay | FDynamicMeshUVOverlay * | The UV Overlay we will be repacking | Parameterization/MeshUVPacking.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool StackPack () |
Uniformly scale all UV islands so that the largest fits in positive-unit-square, and translate each islands separately so that it's bbox-min is at the origin. | Parameterization/MeshUVPacking.h | |
bool StandardPack () |
Standard UnrealEngine UV layout, similar to that used for Lightmap UVs. | Parameterization/MeshUVPacking.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMeshConnectedComponents CollectUVIslandsToPack
(
const FUVOverlayView& MeshView |
Parameterization/MeshUVPacking.h |