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