Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/FDynamicMeshUVEditor
Description
Compute the UV-space and 3D area of the given Triangles, and then scale the UV area to be equvalent to the 3D area. Scaling is around the center of the UV bounding box.
| Name | ScaleUVAreaTo3DArea |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Parameterization/DynamicMeshUVEditor.h |
| Include Path | #include "Parameterization/DynamicMeshUVEditor.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/Parameterization/DynamicMeshUVEditor.cpp |
bool ScaleUVAreaTo3DArea
(
const TArray < int32 > & Triangles,
bool bRecenterAtOrigin,
float ScaleFactor
)
Parameters
| Name | Remarks |
|---|---|
| bRecenterAtOrigin | if true, UVs are translated after scaling such that the UV bounding box center is at (0,0) |
| ScaleFactor | Additional scale factor to multiply into resulting UVs |