FProfileSweepGenerator::InitializeUvBuffer

TODO: We could output other boundaries too, but that's probably only worth doing once we find a case where we would actually use them.

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Generators/SweepGenerator.h

Include

#include "Generators/SweepGenerator.h"

Source

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Private/Generators/SweepGenerator.cpp

Syntax

void InitializeUvBuffer
(
    const TArray< int32 > & VertPositionOffsets,
    int32 & NumUvRowsOut,
    int32 & NumUvColumnsOut
)

Remarks

TODO: We could output other boundaries too, but that's probably only worth doing once we find a case where we would actually use them.

Initializes the UV buffer with UV's that are set according to the diagram at the start of Generate(), with an extra element on each end in the case of closed curves, and distances weighted by distances in the corresponding curves. This function should get called after setting vertex positions so that the function can use them in case bUVScaleRelativeWorld is true.

Parameters

Parameter

Description

VertPositionOffsets

Offsets needed to get the correct vertex indices, for setting the parents of UV elements

NumUvRowsOut

Number of resulting UV rows allocated (a row corresponds to an instance of the profile curve)

NumUvColumnsOut

Number of resulting UV columns allocated (number of columns relates to number of profile points)

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