Navigation
API > API/Plugins > API/Plugins/DynamicMesh
Description
Create a new single UV island for the provided TriangleSet in the given Mesh/UVOverlay, by computing an ExpMap parameterization based on an automatically-detected midpoint of the triangle patch. The UV scale is determined automatically based on the UV/3D area ratio of triangles adjacent to the TriangleSet (using a ratio of 1 if the triangles have no neighbours).
| Name | UE::Geometry::ComputeArbitraryTrianglePatchUVs |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/PolyEditingUVUtil.h |
| Include Path | #include "Operations/PolyEditingUVUtil.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/Operations/PolyEditingUVUtil.cpp |
namespace UE
{
namespace Geometry
{
void UE::Geometry::ComputeArbitraryTrianglePatchUVs
(
FDynamicMesh3 & Mesh,
FDynamicMeshUVOverlay & UVOverlay,
const TArray < int32 > & TriangleSet
)
}
}
Parameters
| Name | Remarks |
|---|---|
| TriangleSet | a list of triangles, must be a single connected component |