Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FDynamicMeshEditor
Description
Project the two triangles of the quad onto a plane defined by the ProjectionFrame and use that to create/set new shared per-triangle UVs. UVs are translated so that their bbox min-corner is at origin, and scaled by given scale factor
| Name | SetQuadUVsFromProjection |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMeshEditor.h |
| Include Path | #include "DynamicMeshEditor.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMeshEditor.cpp |
void SetQuadUVsFromProjection
(
const FIndex2i & QuadTris,
const FFrame3d & ProjectionFrame,
float UVScaleFactor,
const FVector2f & UVTranslation,
int UVLayerIndex
)
Parameters
| Name | Remarks |
|---|---|
| QuadTris | pair of triangle IDs. If second ID is invalid, it is ignored |
| ProjectFrame | vertices are projected into XY axes of this frame |
| UVScaleFactor | UVs are scaled by this uniform scale factor |
| UVTranslation | UVs are translated after scaling |
| UVLayerIndex | which UV layer to operate on (must exist) |