FMeshDescriptionBuilder

Utility class to construct MeshDescription instances

Windows
MacOS
Linux

References

Module

MeshConversion

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/MeshConversion/Public/MeshDescriptionBuilder.h

Include

#include "MeshDescriptionBuilder.h"

Syntax

class FMeshDescriptionBuilder

Remarks

Utility class to construct MeshDescription instances

Variables

Functions

Name Description

Public function

FVertexInsta...

 

AppendInstance

(
    const FVertexID& VertexID
)

Append new vertex instance and return ID

Public function

FPolygonID

 

AppendPolygon

(
    const TArray< FVertexID >& Vertice...,
    const FPolygonGroupID& PolygonGrou...,
    const TArray< FVector2D >* Ver...,
    const TArray< FVector >* Verte...
)

Append an arbitrary polygon to the mesh with the given PolygonGroup ID, and optionally with polygon-vertex UVs and Normals Unique Vertex instances will be created for each polygon-vertex.

Public function

FPolygonGrou...

 

AppendPolygonGroup()

Create a new polygon group and return it's ID

Public function

FPolygonID

 

AppendTriangle

(
    const FVertexInstanceID& Instance0,
    const FVertexInstanceID& Instance1,
    const FVertexInstanceID& Instance2,
    const FPolygonGroupID& PolygonGrou...
)

Append a triangle to the mesh using the given vertex instances and PolygonGroup ID

Public function

FPolygonID

 

AppendTriangle

(
    const FVertexID* Triangle,
    const FPolygonGroupID& PolygonGrou...,
    const FVector2D* VertexUVs,
    const FVector* VertexNormals
)

Append a triangle to the mesh with the given PolygonGroup ID, and optionally with triangle-vertex UVs and Normals

Public function

FPolygonID

 

AppendTriangle

(
    const FVertexID& Vertex0,
    const FVertexID& Vertex1,
    const FVertexID& Vertex2,
    const FPolygonGroupID& PolygonGrou...
)

Append a triangle to the mesh with the given PolygonGroup ID

Public function

FVertexID

 

AppendVertex

(
    const FVector& Position
)

Append vertex and return new vertex ID

Public function Const

FBox

 

ComputeBoundingBox()

Return the current bounding box of the mesh

Public function

void

 

EnablePolyGroups()

Enable per-triangle integer attribute named PolyTriGroups

Public function

FVector

 

GetPosition

(
    const FVertexID& VertexID
)

Return position of vertex

Public function

FVector

 

GetPosition

(
    const FVertexInstanceID& InstanceI...
)

Return position of vertex parent of instance

Public function

void

 

SetAllEdgesHardness

(
    bool bHard
)

Set [MeshAttribute::Edge::IsHard](API\Runtime\StaticMeshDescription\IsHard) to true for all edges

Public function

void

 

SetInstance

(
    const FVertexInstanceID& InstanceI...,
    const FVector2D& InstanceUV,
    const FVector& InstanceNormal
)

Set the UV and Normal of a vertex instance

Public function

void

 

SetInstanceColor

(
    const FVertexInstanceID& InstanceI...,
    const FVector4& Color
)

Set the Color of a vertex instance

Public function

void

 

SetInstanceNormal

(
    const FVertexInstanceID& InstanceI...,
    const FVector& Normal
)

Set the Normal of a vertex instance

Public function

void

 

SetInstanceUV

(
    const FVertexInstanceID& InstanceI...,
    const FVector2D& InstanceUV,
    int32 UVLayerIndex
)

Set the UV of a vertex instance

Public function

void

 

SetMeshDescription

(
    FMeshDescription* Description
)

Public function

void

 

SetNumUVLayers

(
    int32 NumUVLayers
)

Set the number of UV layers

Public function

void

 

SetPolyGroupID

(
    const FPolygonID& PolygonID,
    int GroupID
)

Set the PolyTriGroups attribute value to a specific GroupID for a Polygon

Public function

void

 

SetPosition

(
    const FVertexID& VertexID,
    const FVector& NewPosition
)

Set the position of a vertex

Public function

void

 

Translate

(
    const FVector& Translation
)

Translate the MeshDescription vertex positions

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