IDatasmithMeshElement

[IDatasmithMeshElement](API\Runtime\DatasmithCore\IDatasmithMeshElement) defines an actual geometry.

Windows
MacOS
Linux

Inheritance Hierarchy

IDatasmithElement

IDatasmithMeshElement

References

Module

DatasmithCore

Header

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

Include

#include "IDatasmithSceneElements.h"

Syntax

class IDatasmithMeshElement : public IDatasmithElement

Remarks

IDatasmithMeshElement defines an actual geometry. It won't add any instance to your scene, you'll need IDatasmithMeshActorElement for this. Notice that several IDatasmithMeshActorElements could use the this geometry.

Destructors

Name Description

Public function Virtual

~IDatasmithMeshElement()

Functions

Name Description

Public function Const

float

 

GetArea()

Get the total surface area

Public function Const

float

 

GetDepth()

Get the bounding box depth

Public function Const

FVector

 

GetDimensions()

Get the bounding box dimension of the mesh, in a vector in the form of (Width, Height, Depth )

Public function Const

const TCHAR ...

 

GetFile()

Get the output filename, it can be absolute or relative to the scene file

Public function Const

FMD5Hash

 

GetFileHash()

Return a MD5 hash of the content of the Mesh Element.

Public function Const

float

 

GetHeight()

Get the bounding box height

Public function Const

int32

 

GetLightmapCoordinateIndex()

Get the UV channel that will be used for the lightmap

Public function Const

int32

 

GetLightmapSourceUV()

Get the source UV channel that will be used at import to generate the lightmap UVs

Protected function Const

int32

 

GetLODCount()

Get number of LODs

Public function Const

const TCHAR ...

 

GetMaterial

(
    int32 SlotId
)

Get the name of the material mapped to slot Id, return nullptr if slot isn't mapped

Public function Const

TSharedPtr< ...

 

GetMaterialSlotAt

(
    int32 Index
)

Get the material mapping for slot Index

Public function

TSharedPtr< ...

 

GetMaterialSlotAt

(
    int32 Index
)

Public function Const

int32

 

GetMaterialSlotCount()

Get the number of material slot set on this mesh

Public function Const

float

 

GetWidth()

Get the bounding box width

Public function

void

 

SetDimensions

(
    const float InArea,
    const float InWidth,
    const float InHeight,
    const float InDepth
)

Set surface area and bounding box dimensions to be used on lightmap size calculation.

Public function

void

 

SetFile

(
    const TCHAR* InFile
)

Set the output filename, it can be absolute or relative to the scene file

Public function

void

 

SetFileHash

(
    FMD5Hash Hash
)

Set the MD5 hash of the current mesh file. This should be a hash of its content.

Public function

void

 

SetLightmapCoordinateIndex

(
    int32 UVChannel
)

Set the UV channel that will be used for the lightmap Note: If the lightmap coordinate index is something greater than -1 it will make the importer skip the lightmap generation

Public function

void

 

SetLightmapSourceUV

(
    int32 UVChannel
)

Set the source UV channel that will be used at import to generate the lightmap UVs

Protected function

void

 

SetLODCount

(
    int32 Count
)

Set number of LODs

Public function

void

 

SetMaterial

(
    const TCHAR* MaterialPathName,
    int32 SlotId
)

Set the material slot Id to use the material MaterialPathName

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