FMeshDescriptionTriangleMeshAdapter

Basic struct to adapt a [FMeshDescription](API\Runtime\MeshDescription\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](API\Runtime\MeshDescription\FMeshDescription) with GeometryProcessing's [TMeshAABBTree3](API\Plugins\GeometricObjects\Spatial\TMeshAABBTree3) See also the Editable version below

Windows
MacOS
Linux

References

Module

MeshConversion

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/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<const FMeshDescriptionTriangleMeshAdapter> AABBTree(&MeshAdapter); // provide the adapter to a templated class like TMeshAABBTree3

Variables

Constructors

Name Description

Public function

FMeshDescriptionTriangleMeshAdapter

(
    const FMeshDescription* MeshIn
)

Functions

Name Description

Public function Const

FVector3f

 

GetNormal

(
    int32 IDValue
)

Public function Const

int32

 

GetShapeTimestamp()

Public function Const

FIndex3i

 

GetTriangle

(
    int32 IDValue
)

Public function Const

void

 

GetTriVertices

(
    int32 IDValue,
    FVector3d& V0,
    FVector3d& V1,
    FVector3d& V2
)

Public function Const

FVector3d

 

GetVertex

(
    int32 IDValue
)

Public function Const

bool

 

HasNormals()

Public function Const

bool

 

IsNormal

(
    int32 NID
)

Public function Const

bool

 

IsTriangle

(
    int32 TID
)

Public function Const

bool

 

IsVertex

(
    int32 VID
)

Public function Const

int32

 

MaxNormalID()

Public function Const

int32

 

MaxTriangleID()

ID and Count are the same for MeshDescription because it's compact.

Public function Const

int32

 

MaxVertexID()

Public function Const

int32

 

NormalCount()

Public function Const

int32

 

TriangleCount()

Public function Const

int32

 

VertexCount()

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