UE::Geometry::GetTri

Class used to convert a mesh without attributes (e.g. normals, uvs etc) to a [FDynamicMesh3](API\Runtime\GeometryCore\DynamicMesh\FDynamicMesh3)

Choose your operating system:

Windows

macOS

Linux

References

Module

MeshConversion

Header

/Engine/Source/Runtime/MeshConversion/Public/ToDynamicMesh.h

Include

#include "ToDynamicMesh.h"

Syntax

namespace UE
{
    namespace Geometry
    {
        bool UE::Geometry::GetTri
        (
            const TriIDType TriID,
            VertIDType & VID0,
            VertIDType & VID1,
            VertIDType & VID2
        ) const
    }
}

Remarks

Class used to convert a mesh without attributes (e.g. normals, uvs etc) to a FDynamicMesh3

The Source Mesh has to implement this interface

struct FSrcMeshInterface { ID types: must be castable to int32 typedef SrcVertIDType VertIDType; typedef SrcTriIDType TriIDType;

  1. int32 NumTris() const; int32 NumVerts() const;

"Vertex Buffer" info const Iterable_VertIDType& GetVertIDs() const; const FVector GetPosition(const VertIDType VtxID) const;

"Index Buffer" info const Iterable_TriIDType& GetTriIDs() const return false if this TriID is not contained in mesh. /**