Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FDynamicMeshEditor
Description
For triangles connecting loops of corresponded vertices, set UVs in a cylindrical pattern so that the U coordinate starts at 0 for the first corresponded pair of vertices, and cycles around to 1 Assumes Triangles array stores indices of triangles in progressively filling the tube, starting with VertexIDs*[0]. (This is used to set the UVs correctly at the seam joining the start & end of the loop)
| Name | SetGeneralTubeUVs |
| 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 SetGeneralTubeUVs
(
const TArray < int > & Triangles,
const TArray < int > & VertexIDs1,
const TArray < int > & MatchedIndices1,
const TArray < int > & VertexIDs2,
const TArray < int > & MatchedIndices2,
const TArray < float > & UValues,
const FVector3f & VDir,
float UVScaleFactor,
const FVector2f & UVTranslation,
int UVLayerIndex
)