UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FMeshReductionSettings Struct Reference

#include <MeshReductionSettings.h>

Public Member Functions

ENGINE_API FMeshReductionSettings ()
 
ENGINE_API bool operator== (const FMeshReductionSettings &Other) const
 
ENGINE_API bool operator!= (const FMeshReductionSettings &Other) const
 

Public Attributes

float PercentTriangles
 
uint32 MaxNumOfTriangles
 
float PercentVertices
 
uint32 MaxNumOfVerts
 
float MaxDeviation
 
float PixelError
 
float WeldingThreshold
 
float HardAngleThreshold
 
int32 BaseLODModel
 
TEnumAsByte< EMeshFeatureImportance::TypeSilhouetteImportance
 
TEnumAsByte< EMeshFeatureImportance::TypeTextureImportance
 
TEnumAsByte< EMeshFeatureImportance::TypeShadingImportance
 
uint8 bRecalculateNormals:1
 
uint8 bGenerateUniqueLightmapUVs:1
 
uint8 bKeepSymmetry:1
 
uint8 bVisibilityAided:1
 
uint8 bCullOccluded:1
 
EStaticMeshReductionTerimationCriterion TerminationCriterion
 
TEnumAsByte< EMeshFeatureImportance::TypeVisibilityAggressiveness
 
TEnumAsByte< EMeshFeatureImportance::TypeVertexColorImportance
 

Detailed Description

Settings used to reduce a mesh.

Constructor & Destructor Documentation

◆ FMeshReductionSettings()

FMeshReductionSettings::FMeshReductionSettings ( )

Default settings.

Member Function Documentation

◆ operator!=()

bool FMeshReductionSettings::operator!= ( const FMeshReductionSettings Other) const

Inequality.

◆ operator==()

bool FMeshReductionSettings::operator== ( const FMeshReductionSettings Other) const

Equality operator.

Member Data Documentation

◆ BaseLODModel

int32 FMeshReductionSettings::BaseLODModel

◆ bCullOccluded

uint8 FMeshReductionSettings::bCullOccluded

◆ bGenerateUniqueLightmapUVs

uint8 FMeshReductionSettings::bGenerateUniqueLightmapUVs

◆ bKeepSymmetry

uint8 FMeshReductionSettings::bKeepSymmetry

◆ bRecalculateNormals

uint8 FMeshReductionSettings::bRecalculateNormals

◆ bVisibilityAided

uint8 FMeshReductionSettings::bVisibilityAided

◆ HardAngleThreshold

float FMeshReductionSettings::HardAngleThreshold

Angle at which a hard edge is introduced between faces.

◆ MaxDeviation

float FMeshReductionSettings::MaxDeviation

The maximum distance in object space by which the reduced mesh may deviate from the original mesh.

◆ MaxNumOfTriangles

uint32 FMeshReductionSettings::MaxNumOfTriangles

The maximum number of triangles to retain when using percentage termination criterion. (Triangles criterion properties)

◆ MaxNumOfVerts

uint32 FMeshReductionSettings::MaxNumOfVerts

The maximum number of vertices to retain when using percentage termination criterion. (Vertices criterion properties)

◆ PercentTriangles

float FMeshReductionSettings::PercentTriangles

Percentage of triangles to keep. 1.0 = no reduction, 0.0 = no triangles. (Triangles criterion properties)

◆ PercentVertices

float FMeshReductionSettings::PercentVertices

Percentage of vertices to keep. 1.0 = no reduction, 0.0 = no vertices. (Vertices criterion properties)

◆ PixelError

float FMeshReductionSettings::PixelError

The amount of error in pixels allowed for this LOD.

◆ ShadingImportance

TEnumAsByte<EMeshFeatureImportance::Type> FMeshReductionSettings::ShadingImportance

Higher values try to preserve normals better.

◆ SilhouetteImportance

TEnumAsByte<EMeshFeatureImportance::Type> FMeshReductionSettings::SilhouetteImportance

Higher values minimize change to border edges.

◆ TerminationCriterion

EStaticMeshReductionTerimationCriterion FMeshReductionSettings::TerminationCriterion

The method to use when optimizing static mesh LODs

◆ TextureImportance

TEnumAsByte<EMeshFeatureImportance::Type> FMeshReductionSettings::TextureImportance

Higher values reduce texture stretching.

◆ VertexColorImportance

TEnumAsByte<EMeshFeatureImportance::Type> FMeshReductionSettings::VertexColorImportance

Higher values minimize change to vertex color data.

◆ VisibilityAggressiveness

TEnumAsByte<EMeshFeatureImportance::Type> FMeshReductionSettings::VisibilityAggressiveness

Higher values generates fewer samples

◆ WeldingThreshold

float FMeshReductionSettings::WeldingThreshold

Threshold in object space at which vertices are welded together.


The documentation for this struct was generated from the following files: