Navigation
Unreal Engine C++ API Reference > Plugins > ProxyLODMeshReduction > IProxyLODParameterization
References
Module | ProxyLODMeshReduction |
Header | /Engine/Plugins/Experimental/ProxyLODPlugin/Source/ProxyLOD/Public/ProxyLODParameterization.h |
Include | #include "ProxyLODParameterization.h" |
bool GenerateUVs
&40;
int32 Width,
int32 Height,
float GutterSpace,
const TArray< FVector3f > & VertexBuffer,
const TArray< int32 > & IndexBuffer,
const TArray< int32 > & AdjacencyBuffer,
TFunction< bool(float)> & Callback,
TArray< FVector2D > & UVVertexBuffer,
TArray< int32 > & UVIndexBuffer,
TArray< int32 > & VertexRemapArray,
float & MaxStretch,
int32 & NumCharts
&41; const
Remarks
Lower-level entry point: Method that generates new UVs inconstant with the mesh defined by the VertexBuffer/IndexBuffer according to the parameters specified in the FTextureAtlasDesc The underlying code uses Isometeric approach (Iso-Charts) in UV generation. This assumes that the caller has already generated the mesh adjacency information. 'true' if the UV generation succeeded, 'false' if it failed.
Parameters
Name | Description |
---|---|
InTextureAtlasDesc | Description of the texel resolution of the desired texture atlas. |
VertexBuffer | Positions of vertices |
IndexBuffer | Triangle definitions |
AdjacencyBuffer | 3 entries for each face, each entry is the face index of the face that is adjacent to the given face. -1 means no face. |
StatusCallBack | Allows for termination of the UV generation. |
UVVertexBuffer | Resulting UVs |
UVIndexBuffer | Connectivity for the UVs |
VertexRemapArray | Array that remaps the vertices split by the UV generation to the source vertices. |
MaxStretch | On Input, The maximum amount of stretch between (0 - none and 1 - any), on Output the actual max stretch used. |
MaxChartNumber | On Input Maximum number of charts required for the atlas. If this is 0, will be parameterized solely on stretch. Note, not a hard limit - isochart will stop when a valid charting is found that is greater or equal to this number. On Output: Number of charts actually generated |