Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FDynamicMeshEditor
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/DynamicMeshEditor.h |
| Include | #include "DynamicMeshEditor.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMeshEditor.cpp |
void SetQuadUVsFromProjection
&40;
const FIndex2i & QuadTris,
const FFrame3d & ProjectionFrame,
float UVScaleFactor,
const FVector2f & UVTranslation,
int UVLayerIndex
&41;
Remarks
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
Parameters
| Name | Description |
|---|---|
| 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) |