FDatasmithMesh

Copyright Epic Games, Inc. All Rights Reserved.

Windows
MacOS
Linux

References

Module

DatasmithCore

Header

/Engine/Source/Runtime/Datasmith/DatasmithCore/Public/DatasmithMesh.h

Include

#include "DatasmithMesh.h"

Syntax

class FDatasmithMesh

Remarks

Copyright Epic Games, Inc. All Rights Reserved.

Constructors

Name Description

Public function

FDatasmithMesh()

Public function

FDatasmithMesh

(
    const FDatasmithMesh& Other
)

Public function

FDatasmithMesh

(
    FDatasmithMesh&& Other
)

Destructors

Name Description

Public function

~FDatasmithMesh()

Functions

Name Description

Public function

void

 

AddLOD

(
    FDatasmithMesh&& InLODMesh
)

LODs.

Public function

void

 

AddLOD

(
    const FDatasmithMesh& InLODMesh
)

LODs.

Public function

void

 

AddUVChannel()

Add a UV channel at the end

Public function Const

float

 

ComputeArea()

Misc.

Public function Const

FBox

 

GetExtents()

Returns the bounding box containing all vertices of this mesh

Public function Const

void

 

GetFace

(
    int32 Index,
    int32& Vertex1,
    int32& Vertex2,
    int32& Vertex3,
    int32& MaterialId
)

Public function Const

int32

 

GetFacesCount()

Retrieves the amount of faces

Public function Const

uint32

 

GetFaceSmoothingMask

(
    int32 Index
)

Gets the smoothing mask of a face

Public function Const

void

 

GetFaceUV

(
    int32 Index,
    int32 Channel,
    int32& Vertex1,
    int32& Vertex2,
    int32& Vertex3
)

Gets the UV coordinates of the vertices of a face

Public function Const

uint32

 

GetHashForUVChannel

(
    int32 Channel
)

Get the hash for a uv channel

Public function Const

int32

 

GetLightmapSourceUVChannel()

Gets the UV channel that will be used for lightmap UVs generation at import

Public function Const

const FDatas...

 

GetLOD

(
    int32 Index
)

Gets the FDatasmithMesh LOD at the given index, if the index is invalid returns nullptr

Public function

FDatasmithMe...

 

GetLOD

(
    int32 Index
)

Gets the FDatasmithMesh LOD at the given index, if the index is invalid returns nullptr

Public function Const

int32

 

GetLODsCount()

Public function Const

int32

 

GetMaterialsCount()

Public function Const

const TCHAR ...

 

GetName()

Public function Const

FVector

 

GetNormal

(
    int32 Index
)

Public function Const

FVector2D

 

GetUV

(
    int32 Channel,
    int32 Index
)

Gets the UV coordinates for a channel

Public function Const

int32

 

GetUVChannelsCount()

Gets the amount of UV channels on this mesh

Public function Const

int32

 

GetUVCount

(
    int32 Channel
)

Retrieves the amount of UV coordinates on the channel.

Public function Const

FVector

 

GetVertex

(
    int32 Index
)

Public function Const

FColor

 

GetVertexColor

(
    int32 Index
)

Get the color for a vertex

Public function Const

int32

 

GetVertexColorCount()

Get the number of vertex color

Public function Const

int32

 

GetVerticesCount()

Retrieves the amount of geometric vertices. The validity of the vertex data is not guaranteed

Public function Const

bool

 

IsMaterialIdUsed

(
    int32 MaterialId
)

Public function

void

 

RemoveUVChannel()

Remove the last UV channel

Public function

void

 

SetFace

(
    int32 Index,
    int32 Vertex1,
    int32 Vertex2,
    int32 Vertex3,
    int32 MaterialId
)

Sets the geometry of the face

Public function

void

 

SetFacesCount

(
    int32 NumFaces
)

Faces.

Public function

void

 

SetFaceSmoothingMask

(
    int32 Index,
    uint32 SmoothingMask
)

Sets the smoothing mask of the face

Public function

void

 

SetFaceUV

(
    int32 Index,
    int32 Channel,
    int32 Vertex1,
    int32 Vertex2,
    int32 Vertex3
)

Sets the channel UV coordinates of the face

Public function

void

 

SetLightmapSourceUVChannel

(
    int32 Channel
)

Sets the UV channel that will be used as the source UVs for lightmap UVs generation at import, defaults to channel 0.

Public function

void

 

SetName

(
    const TCHAR* InName
)

Public function

void

 

SetNormal

(
    int32 Index,
    float X,
    float Y,
    float Z
)

Normals.

Public function

void

 

SetUV

(
    int32 Channel,
    int32 Index,
    double U,
    double V
)

Sets the 2d position of the UV vertex for the first uv mapping

Public function

void

 

SetUVChannelsCount

(
    int32 ChannelCount
)

UVs.

Public function

void

 

SetUVCount

(
    int32 Channel,
    int32 NumVerts
)

Setting the amount of UV coordinates on the channel is mandatory before filling the array

Public function

void

 

SetVertex

(
    int32 Index,
    float X,
    float Y,
    float Z
)

Sets the 3d position of the vertex

Public function

void

 

SetVertexColor

(
    int32 Index,
    const FColor& Color
)

Set a vertex color

Public function

void

 

SetVerticesCount

(
    int32 NumVerts
)

Vertices.

Operators

Name Description

Public function

FDatasmithMe...

 

operator=

(
    FDatasmithMesh&& Other
)

Public function

FDatasmithMe...

 

operator=

(
    const FDatasmithMesh& Other
)

Classes

Name

Description

Public class

FDatasmithMeshImpl

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