Navigation
API > API/Runtime > API/Runtime/GeometryCore
FUVPacker implements various strategies for packing UV islands in a generic mesh class. The UV islands must already be identified, this class simply scales/rotates/translates the islands to fit.
| Name | FUVPacker |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Parameterization/UVPacking.h |
| Include Path | #include "Parameterization/UVPacking.h" |
Syntax
class FUVPacker
Structs
| Name | Remarks |
|---|---|
| IUVMeshView | Abstract interface to apply UV packer a mesh |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bAllowFlips | bool | If true, islands can be flipped in addition to rotate/translate/scale | Parameterization/UVPacking.h | |
| bPreserveRotation | bool | If true, original island rotation is maintained during any packing process. | Parameterization/UVPacking.h | |
| bPreserveScale | bool | If true, original island scale is maintained during any packing process. | Parameterization/UVPacking.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/UVPacking.h | |
| GutterSize | float | Thickness of gutter/border in pixel dimensions. Not supported by all packing methods | Parameterization/UVPacking.h | |
| TextureResolution | int32 | Resolution of the target texture. This is used to convert pixel gutter/border thickness to UV space | Parameterization/UVPacking.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool StackPack
(
IUVMeshView* Mesh, |
Version of StackPack that takes an array of arrays instead of a TFunctionRef, for convenience. | Parameterization/UVPacking.h | |
bool StackPack
(
IUVMeshView* Mesh, |
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/UVPacking.h | |
bool StandardPack
(
IUVMeshView* Mesh, |
Version of StandardPack that takes an array of arrays instead of a TFunctionRef, for convenience. | Parameterization/UVPacking.h | |
bool StandardPack
(
IUVMeshView* Mesh, |
Standard UE UV layout, similar to that used for Lightmap UVs. | Parameterization/UVPacking.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void GetIslandStats
(
IUVMeshView* Mesh, |
Compute common stats used by the packing algorithms to transform UV islands | Parameterization/UVPacking.h |