Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Parameterization
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Parameterization/UVPacking.h |
| Include | #include "Parameterization/UVPacking.h" |
Syntax
class FUVPacker
Remarks
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.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAllowFlips | If true, islands can be flipped in addition to rotate/translate/scale | |
| bool | bPreserveRotation | If true, original island rotation is maintained during any packing process. | |
| bool | bPreserveScale | If true, original island scale is maintained during any packing process. | |
| bool | bScaleIslandsByWorldSpaceTexelRatio | Attempt to rescale islands to match texel-to-world-space ratio across islands, based on ratio of World- and UV-space edge lengths | |
| float | GutterSize | Thickness of gutter/border in pixel dimensions. Not supported by all packing methods | |
| int32 | TextureResolution | Resolution of the target texture. This is used to convert pixel gutter/border thickness to UV space |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | GetIslandStats
(
IUVMeshView* Mesh, |
Compute common stats used by the packing algorithms to transform UV islands | |
| bool | StackPack
(
IUVMeshView* Mesh, |
Version of StackPack that takes an array of arrays instead of a TFunctionRef, for convenience. | |
| 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. | |
| bool | StandardPack
(
IUVMeshView* Mesh, |
Version of StandardPack that takes an array of arrays instead of a TFunctionRef, for convenience. | |
| bool | StandardPack
(
IUVMeshView* Mesh, |
Standard UE UV layout, similar to that used for Lightmap UVs. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| IUVMeshView | Abstract interface to apply UV packer a mesh |