FDynamicMeshEditor::SetTriangleUVsFromProjection

Project triangles onto a plane defined by the ProjectionFrame and use that to create/set new shared per-triangle UVs.

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 SetTriangleUVsFromProjection
(
    const TArray< int32 > & Triangles,
    const FFrame3d & ProjectionFrame,
    float UVScaleFactor,
    const FVector2f & UVTranslation,
    bool bShiftToOrigin,
    int32 UVLayerIndex
)

Remarks

Project triangles 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

Parameter

Description

Triangles

TArray of triangle IDs

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)

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