FDynamicMeshEditor::SetGeneralTubeUVs

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].

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/DynamicMeshEditor.h

Include

#include "DynamicMeshEditor.h"

Source

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Private/DynamicMeshEditor.cpp

Syntax

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
)

Remarks

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)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss