Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Parameterization
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Parameterization/MeshUVPacking.h |
| Include | #include "Parameterization/MeshUVPacking.h" |
Syntax
class FDynamicMeshUVPacker
Remarks
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.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAllowFlips | If true, islands can be flipped in addition to rotate/translate/scale | |
| 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 | |
| TUniquePtr< TArray< int32 > > | TidsToRepack | The explicit triangle ids to repack, repack all triangles if null | |
| FDynamicMeshUVOverlay * | UVOverlay | The UV Overlay we will be repacking |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FDynamicMeshUVPacker
(
FDynamicMeshUVOverlay* UVOverlay |
|||
FDynamicMeshUVPacker
(
FDynamicMeshUVOverlay* UVOverlay, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FMeshConnectedComponents | CollectUVIslandsToPack
(
const FUVOverlayView& MeshView |
||
| 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. | |
| bool | StandardPack () |
Standard UnrealEngine UV layout, similar to that used for Lightmap UVs. |