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< int > & Triangles,
    const FFrame3d & ProjectionFrame,
    const FVector2f & UVScale,
    const FVector2f & UVTranslation,
    int UVLayerIndex,
    bool bShiftToOrigin,
    bool bNormalizeBeforeScaling
)

Remarks

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

Parameters

Parameter

Description

Triangles

TArray of triangle IDs

ProjectFrame

Vertices are projected into XY axes of this frame

UVScaleFactor

UVs are scaled by these factors

UVTranslation

UVs are translated after scaling by these amounts

UVLayerIndex

Which UV layer to operate on (must exist)

bShiftToOrigin

Whether to translate the UV coordinates to make their bounding box min corner be (0,0) before applying UVTranslation

bNormalizeBeforeScaling

Whether to place the UV coordinates into the range [0,1] before applying UVScaleFactor and UVTranslation

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