Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Parameterization
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Parameterization/PatchBasedMeshUVGenerator.h |
| Include | #include "Parameterization/PatchBasedMeshUVGenerator.h" |
Syntax
class FPatchBasedMeshUVGenerator
Remarks
FPatchBasedMeshUVGenerator is an automatic UV generator for a triangle mesh that, generally, works by first decomposing the mesh into small patches for which a "known good" parameterization can be computed, and then incrementally merging those patches into larger ones to create final UV islands.
The various steps of the generator can be called independently, eg if one already has a patch decomposition, then the initial steps can be skipped
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAutoAlignPatches | Packing parameters (used in AutoComputeUVs) | |
| bool | bAutoPack | ||
| bool | bNormalWeightedPatches | ||
| double | CompactnessThreshold | ||
| FPolygroupSet * | GroupConstraint | If this is set, then the output patches will respect the borders of the input polygroups, eg as if they were disconnected components. | |
| double | MaxNormalDeviationDeg | ||
| double | MergingThreshold | Parameters for island merging (ComputeIslandsByRegionMerging) | |
| int32 | MinPatchSize | ||
| double | NormalSmoothingAlpha | ||
| int32 | NormalSmoothingRounds | ExpMap parameters (ComputeUVsFromTriangleSets) | |
| float | PackingGutterWidth | ||
| int32 | PackingTextureResolution | ||
| double | PatchNormalWeight | ||
| int32 | TargetPatchCount | Parameters for patch generation (ComputeInitialMeshPatches) |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FGeometryResult | AutoComputeUVs
(
FDynamicMesh3& TargetMesh, |
Top-level driver function, automatically computes UVs on the given TargetMesh and stores in the given TargetUVOverlay, using the steps below, based on the parameters above | |
| bool | ComputeInitialMeshPatches
(
FDynamicMesh3& TargetMesh, |
Compute a decomposition of TargetMesh into many small patches (driven by TargetPatchCount). | |
| bool | ComputeIslandsByRegionMerging
(
FDynamicMesh3& TargetMesh, |
Incrementally combine existing mesh patches into larger patches that meet the various criteria defined by the parameters above | |
| int32 | ComputeUVsFromTriangleSets
(
FDynamicMesh3& TargetMesh, |
Calculate UVs for the input mesh patches of TargetMesh and store in TargetUVOVerlay |