Navigation
API > API/Runtime > API/Runtime/MeshConversion
References
| Module | MeshConversion |
| Header | /Engine/Source/Runtime/MeshConversion/Public/MeshDescriptionAdapter.h |
| Include | #include "MeshDescriptionAdapter.h" |
Syntax
struct FMeshDescriptionTriangleMeshAdapter
Remarks
Basic struct to adapt a FMeshDescription for use by GeometryProcessing classes that template the mesh type and expect a standard set of basic accessors For example, this adapter will let you use a FMeshDescription with GeometryProcessing's TMeshAABBTree3 See also the Editable version below
Usage example given some const FMeshDescription* Mesh: FMeshDescriptionAABBAdapter MeshAdapter(Mesh); // adapt the mesh TMeshAABBTree3
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bScaleNormals | ||
| FVector3d | BuildScale | ||
| const FMeshDescription * | Mesh | ||
| TArrayView< const FVertexInstanceID > | TriangleVertexInstanceIndices | ||
| TVertexInstanceAttributesConstRef< FVector3f > | VertexInstanceNormals | ||
| TVertexInstanceAttributesConstRef< FVector2f > | VertexInstanceUVs | ||
| TVertexAttributesConstRef< FVector3f > | VertexPositions |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FMeshDescriptionTriangleMeshAdapter
(
const FMeshDescription* MeshIn |
Functions
| Type | Name | Description | |
|---|---|---|---|
| uint64 | |||
| FVector3f | GetNormal
(
int32 IDValue |
Get Normal by VertexInstanceID | |
| FIndex3i | GetTriangle
(
int32 IDValue |
||
| void | GetTriNormals
(
int32 TriId, |
Get Normals for a given Triangle | |
| void | GetTriUVs
(
const int32 TriId, |
Get UVs for a given UVLayer and Triangle | |
| void | GetTriVertices
(
int32 IDValue, |
||
| void | GetTriVertices
(
int32 IDValue, |
||
| FVector2f | GetUV
(
const int32 IDValue, |
Get UV by VertexInstanceID for a given UVLayer | |
| FVector3d | GetVertex
(
int32 IDValue |
||
| bool | HasNormals () |
||
| bool | HasUVs
(
const int32 UVLayer |
||
| bool | IsNormal
(
int32 NID |
||
| bool | IsTriangle
(
int32 TID |
||
| bool | IsUV
(
const int32 UVId |
||
| bool | IsVertex
(
int32 VID |
||
| int32 | MaxNormalID () |
||
| int32 | ID and Count are the same for MeshDescription because it's compact. | ||
| int32 | MaxUVID () |
||
| int32 | MaxVertexID () |
||
| int32 | NormalCount () |
||
| void | SetBuildScale
(
const FVector3d& BuildScaleIn, |
||
| int32 | |||
| int32 | UVCount () |
||
| int32 | VertexCount () |
Typedefs
| Name | Description |
|---|---|
| FIndex3i |