Navigation
API > API/Runtime > API/Runtime/DatasmithCore
| Name | FDatasmithMesh |
| Type | class |
| Header File | /Engine/Source/Runtime/Datasmith/DatasmithCore/Public/DatasmithMesh.h |
| Include Path | #include "DatasmithMesh.h" |
Syntax
class FDatasmithMesh
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FDatasmithMesh
(
FDatasmithMesh&& Other |
DatasmithMesh.h | ||
FDatasmithMesh
(
const FDatasmithMesh& Other |
DatasmithMesh.h | ||
| DatasmithMesh.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FDatasmithMesh() |
DatasmithMesh.h |
Classes
| Name | Remarks |
|---|---|
| FDatasmithMeshImpl |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Impl | FDatasmithMeshImpl * | DatasmithMesh.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddLOD
(
FDatasmithMesh&& InLODMesh |
DatasmithMesh.h | ||
void AddLOD
(
const FDatasmithMesh& InLODMesh |
LODs. | DatasmithMesh.h | |
void AddUVChannel() |
Add a UV channel at the end | DatasmithMesh.h | |
FMD5Hash CalculateHash() |
Calculate mesh data hash(doesn't include name) | DatasmithMesh.h | |
float ComputeArea () |
Misc. | DatasmithMesh.h | |
FBox3f GetExtents() |
Returns the bounding box containing all vertices of this mesh | DatasmithMesh.h | |
void GetFace
(
int32 Index, |
DatasmithMesh.h | ||
int32 GetFacesCount() |
Retrieves the amount of faces | DatasmithMesh.h | |
uint32 GetFaceSmoothingMask
(
int32 Index |
Gets the smoothing mask of a face | DatasmithMesh.h | |
void GetFaceUV
(
int32 Index, |
Gets the UV coordinates of the vertices of a face | DatasmithMesh.h | |
uint32 GetHashForUVChannel
(
int32 Channel |
Get the hash for a uv channel | DatasmithMesh.h | |
int32 GetLightmapSourceUVChannel() |
Gets the UV channel that will be used for lightmap UVs generation at import | DatasmithMesh.h | |
const FDatasmithMesh * GetLOD
(
int32 Index |
DatasmithMesh.h | ||
FDatasmithMesh * GetLOD
(
int32 Index |
Gets the FDatasmithMesh LOD at the given index, if the index is invalid returns nullptr | DatasmithMesh.h | |
int32 GetLODsCount() |
DatasmithMesh.h | ||
int32 GetMaterialsCount() |
DatasmithMesh.h | ||
const TCHAR * GetName() |
DatasmithMesh.h | ||
FVector3f GetNormal
(
int32 Index |
DatasmithMesh.h | ||
FVector2D GetUV
(
int32 Channel, |
Gets the UV coordinates for a channel | DatasmithMesh.h | |
int32 GetUVChannelsCount() |
Gets the amount of UV channels on this mesh | DatasmithMesh.h | |
int32 GetUVCount
(
int32 Channel |
Retrieves the amount of UV coordinates on the channel. | DatasmithMesh.h | |
FVector3f GetVertex
(
int32 Index |
DatasmithMesh.h | ||
FColor GetVertexColor
(
int32 Index |
Get the color for a vertex | DatasmithMesh.h | |
int32 GetVertexColorCount() |
Get the number of vertex color | DatasmithMesh.h | |
int32 GetVerticesCount() |
Retrieves the amount of geometric vertices. The validity of the vertex data is not guaranteed | DatasmithMesh.h | |
bool IsMaterialIdUsed
(
int32 MaterialId |
DatasmithMesh.h | ||
void RemoveUVChannel() |
Remove the last UV channel | DatasmithMesh.h | |
void SetFace
(
int32 Index, |
Sets the geometry of the face | DatasmithMesh.h | |
void SetFacesCount
(
int32 NumFaces |
Faces. | DatasmithMesh.h | |
void SetFaceSmoothingMask
(
int32 Index, |
Sets the smoothing mask of the face | DatasmithMesh.h | |
void SetFaceUV
(
int32 Index, |
Sets the channel UV coordinates of the face | DatasmithMesh.h | |
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. | DatasmithMesh.h | |
void SetName
(
const TCHAR* InName |
DatasmithMesh.h | ||
void SetNormal
(
int32 Index, |
Normals. | DatasmithMesh.h | |
void SetUV
(
int32 Channel, |
Sets the 2d position of the UV vertex for the first uv mapping | DatasmithMesh.h | |
void SetUVChannelsCount
(
int32 ChannelCount |
UVs. | DatasmithMesh.h | |
void SetUVCount
(
int32 Channel, |
Setting the amount of UV coordinates on the channel is mandatory before filling the array | DatasmithMesh.h | |
void SetVertex
(
int32 Index, |
Sets the 3d position of the vertex | DatasmithMesh.h | |
void SetVertexColor
(
int32 Index, |
Set a vertex color | DatasmithMesh.h | |
void SetVerticesCount
(
int32 NumVerts |
Vertices. | DatasmithMesh.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FDatasmithMesh & operator=
(
const FDatasmithMesh& Other |
DatasmithMesh.h | ||
FDatasmithMesh & operator=
(
FDatasmithMesh&& Other |
DatasmithMesh.h |