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 | Get Normal by VertexInstanceID | ||
| FIndex3i | GetTriangle
(
int32 IDValue |
||
| void | GetTriNormals
(
int32 TriId, |
Get Normals for a given Triangle | |
| void | Get UVs for a given UVLayer and Triangle | ||
| void | GetTriVertices
(
int32 IDValue, |
||
| void | GetTriVertices
(
int32 IDValue, |
||
| FVector2f | Get UV by VertexInstanceID for a given UVLayer | ||
| FVector3d | |||
| bool | HasNormals () |
||
| bool | |||
| bool | |||
| bool | IsTriangle
(
int32 TID |
||
| bool | |||
| bool | |||
| 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 |