Navigation
API > API/Runtime > API/Runtime/StaticMeshDescription
| Name | FStaticMeshOperations |
| Type | class |
| Header File | /Engine/Source/Runtime/StaticMeshDescription/Public/StaticMeshOperations.h |
| Include Path | #include "StaticMeshOperations.h" |
Syntax
class FStaticMeshOperations
Derived Classes
Structs
| Name | Remarks |
|---|---|
| FAppendSettings | |
| FGenerateUVOptions |
Enums
Public
| Name | Remarks |
|---|---|
| EGenerateUVMethod |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool AddUVChannel
(
FMeshDescription& MeshDescription |
Add a UV channel to the MeshDescription. | StaticMeshOperations.h | |
static void AppendMeshDescription
(
const FMeshDescription& SourceMesh, |
StaticMeshOperations.h | ||
static void AppendMeshDescriptions
(
const TArray< const FMeshDescription* >& SourceMeshes, |
StaticMeshOperations.h | ||
static void ApplyTransform
(
FMeshDescription& MeshDescription, |
StaticMeshOperations.h | ||
static void ApplyTransform
(
FMeshDescription& MeshDescription, |
Transforms the MeshDescription data using the provided transform. | StaticMeshOperations.h | |
static void AreNormalsAndTangentsValid
(
const FMeshDescription& MeshDescription, |
StaticMeshOperations.h | ||
static void BuildWeldedVertexIDRemap
(
const FMeshDescription& MeshDescription, |
StaticMeshOperations.h | ||
static void ComputeMikktTangents
(
FMeshDescription& MeshDescription, |
Compute tangent and Bi-Normal using mikkt space for every vertex in the mesh description. | StaticMeshOperations.h | |
static void ComputePolygonTangentsAndNormals
(
FMeshDescription& MeshDescription, |
Set the polygon tangent, normal, binormal and polygonCenter for all polygons in the mesh description. | StaticMeshOperations.h | |
static FSHAHash ComputeSHAHash
(
const FMeshDescription& MeshDescription, |
Computes the SHA hash of all the attributes values in the MeshDescription. | StaticMeshOperations.h | |
static void ComputeTangentsAndNormals
(
FMeshDescription& MeshDescription, |
Recompute any invalid normal, tangent or Bi-Normal for every vertex in the mesh description with the given options. | StaticMeshOperations.h | |
static void ComputeTriangleTangentsAndNormals
(
FMeshDescription& MeshDescription, |
Set the triangle tangent, normal, binormal and triangleCenter for all triangles in the mesh description. | StaticMeshOperations.h | |
static void ConvertFromRawMesh
(
const FRawMesh& SourceRawMesh, |
Convert old FRawMesh format to MeshDescription. | StaticMeshOperations.h | |
static void ConvertHardEdgesToSmoothGroup
(
const FMeshDescription& SourceMeshDescription, |
StaticMeshOperations.h | ||
static void ConvertSmoothGroupToHardEdges
(
const TArray< uint32 >& FaceSmoothingMasks, |
StaticMeshOperations.h | ||
static void ConvertToRawMesh
(
const FMeshDescription& SourceMeshDescription, |
Convert this mesh description into the old FRawMesh format. | StaticMeshOperations.h | |
static bool CreateLightMapUVLayout
(
FMeshDescription& MeshDescription, |
Find and pack UV charts for lightmap. | StaticMeshOperations.h | |
static void DetermineEdgeHardnessesFromVertexInstanceNormals
(
FMeshDescription& MeshDescription, |
Determine the edge hardnesses from existing normals | StaticMeshOperations.h | |
static void FindOverlappingCorners
(
FOverlappingCorners& OverlappingCorners, |
Find all overlapping vertex using the threshold in the mesh description. | StaticMeshOperations.h | |
static void FlipPolygons
(
FMeshDescription& MeshDescription |
Flip the facing for a set of input polygons. | StaticMeshOperations.h | |
static void GenerateBoxUV
(
const FMeshDescription& MeshDescription, |
Generate box UV mapping for the MeshDescription | StaticMeshOperations.h | |
static void GenerateCylindricalUV
(
FMeshDescription& MeshDescription, |
Generate cylindrical UV mapping for the MeshDescription | StaticMeshOperations.h | |
static void GeneratePlanarUV
(
const FMeshDescription& MeshDescription, |
Generate planar UV mapping for the MeshDescription | StaticMeshOperations.h | |
static bool GenerateUniqueUVsForStaticMesh
(
const FMeshDescription& MeshDescription, |
Create some UVs from the specified mesh description data. | StaticMeshOperations.h | |
static bool GenerateUV
(
const FMeshDescription& MeshDescription, |
Generate UV coordinates from the specified mesh description data. | StaticMeshOperations.h | |
static int32 GetUniqueVertexCount
(
const FMeshDescription& MeshDescription |
Return the number of unique vertices, unique vertices are the result of welding all similar vertex instances (position, UV, tangent space, color,...) | StaticMeshOperations.h | |
static int32 GetUniqueVertexCount
(
const FMeshDescription& MeshDescription, |
StaticMeshOperations.h | ||
static int32 GetUVChartCount
(
FMeshDescription& MeshDescription, |
Find all charts in the mesh description. | StaticMeshOperations.h | |
static void HasInvalidVertexInstanceNormalsOrTangents
(
const FMeshDescription& MeshDescription, |
Check the mesh description's vertex instance normals and tangents to see if any of the values are invalid (e.g. nearly zero or they contain a NaN). | StaticMeshOperations.h | |
static bool HasVertexColor
(
const FMeshDescription& MeshDescription |
StaticMeshOperations.h | ||
static bool InsertUVChannel
(
FMeshDescription& MeshDescription, |
Insert a UV channel at the given index to the MeshDescription. | StaticMeshOperations.h | |
static void RecomputeNormalsAndTangentsIfNeeded
(
FMeshDescription& MeshDescription, |
Make sure all normals and tangents are valid. If not, recompute them. | StaticMeshOperations.h | |
static bool RemoveUVChannel
(
FMeshDescription& MeshDescription, |
Remove the UV channel at the given index from the MeshDescription. | StaticMeshOperations.h | |
static void ReorderMeshDescriptionPolygonGroups
(
const FMeshDescription& SourceMeshDescription, |
Reorder the destination mesh description polygon groups in the same order has the source mesh description polygon groups. | StaticMeshOperations.h | |
static void SwapPolygonPolygonGroup
(
FMeshDescription& MeshDescription, |
Move some polygon to a new PolygonGroup(section) SectionIndex: The target section we want to assign the polygon. | StaticMeshOperations.h | |
static bool ValidateAndFixData
(
FMeshDescription& MeshDescription, |
Verify the mesh data does not contain any NAN or INF float value, if such a case happen the value are set to zero or identity for matrix or quat. | StaticMeshOperations.h |